-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sveltekit throws developer warning when using correct fetch from load-function #5031
Comments
Not sure why this is happening, but I can confirm that commit d7cb8b8 (warn if load uses |
Note: this is about |
You're totally correct -- I just nailed it down. The easy fix is this: https://github.com/tcc-sejohnson/kit/tree/sejohnson-fix-fetch-warning-on-initial-fetch The slightly-harder fix is to pass Given that this is a dev-mode thing for ergonomics, I don't see much of an issue just checking the stack trace for I'm not entirely sure how to test the changes, though -- this would only happen before the app is started... |
I have a fix in a branch, one sec... |
Describe the bug
In #4958 a helper warning was introduced if the
window.fetch
method is used instead of thefetch
method provided by the load function. However, this warning is logged even though the correct fetch method is used.Reproduction
https://github.com/MathiasWP/sveltekit-window-fetch-warning-bug
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: