Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 26, 2022
1 parent 39e4d1c commit 3c3366c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/kit/src/runtime/client/fetcher.js
Expand Up @@ -27,6 +27,9 @@ if (import.meta.env.DEV) {
const stack = /** @type {string} */ (new Error().stack);

const heuristic = can_inspect_stack_trace ? stack.includes('load_node') : loading;
console.log(`heuristic: ${!!heuristic}`)
console.log(`can_inspect_stack_trace: ${!!can_inspect_stack_trace}`)
console.log(`loading: ${loading}`)
if (heuristic) {
console.warn(
`Loading ${url} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://kit.svelte.dev/docs/load#making-fetch-requests`
Expand Down

0 comments on commit 3c3366c

Please sign in to comment.