-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Double execution of the page on the server side, at server startup, when the page is open in a web browser #6910
Copy link
Copy link
Closed
Labels
Milestone
Description
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
- use the repo https://github.com/lukaszpolowczyk/podwojnelogi
- install
- fire up the server
- open the page in a web browser
- stop the server
- clean the terminal
- fire up the server again
You will see a double log from src/routes/+page.svelte in the terminal:
test page.svelte
test page.svelte
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
System:
OS: Linux 5.10 Arch Linux
CPU: (4) x64 AMD Athlon(tm) X4 950 Quad Core Processor
Memory: 6.52 GB / 15.07 GB
Container: Yes
Shell: 5.1.8 - /bin/bash
Binaries:
Node: 18.4.0 - ~/.nvm/versions/node/v18.4.0/bin/node
Yarn: 1.22.10 - /usr/bin/yarn
npm: 8.12.1 - ~/.nvm/versions/node/v18.4.0/bin/npm
Browsers:
Brave Browser: 100.1.37.109
Firefox: 102.2.0esr
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.76
@sveltejs/kit: next => 1.0.0-next.489
svelte: ^3.46.0 => 3.50.1
vite: ^3.1.0 => 3.1.3Severity
annoyance
Additional Information
No response
Reactions are currently unavailable