Skip to content

Double execution of the page on the server side, at server startup, when the page is open in a web browser #6910

@lukaszpolowczyk

Description

@lukaszpolowczyk

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

  1. use the repo https://github.com/lukaszpolowczyk/podwojnelogi
  2. install
  3. fire up the server
  4. open the page in a web browser
  5. stop the server
  6. clean the terminal
  7. 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.3

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions