-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Double execution of the page on the server side, at server startup, when the page is open in a web browser #6910
Labels
Milestone
Comments
If I add some logging to a export function load({ request }) {
console.log(request.method, Object.fromEntries(request.headers));
} ...I see this:
I believe the first request is coming from the Vite HMR client, though it's difficult to be sure. |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Double execution of the page on the server side, at server startup, when the page is open in a web browser.
Reproduction
You will see a double log from
src/routes/+page.svelte
in the terminal:When the page is not open in the browser, the log is only one, when firing up the server
Why does it work this way? Is this how it should work?
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: