-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationready to implementplease submit PRs for these issues!please submit PRs for these issues!
Milestone
Description
Describe the bug
Steps:
- Start dev server
- Initialize and export a store with value 0
- Import the store in a page
- Set store value in the page to 1
- Open the page for the first time
- As expected the page renders store value 1, not 0
- Deactivate/remove code from step 4
- Refresh the page
- Page now renders store value 1 (shortly, SSR cached?) which is then hydrated/updated client side to value 0
Workaround:
Restart the dev server, the SSR rendered page no longer has value 1 but value 0
Question:
Is this intended/expected behavior, is it configurable or a bug in vite or svelte?
Reproduction
https://github.com/konstantinblaesi/store-issue-repro
Logs
No response
System Info
System:
OS: Linux 6.1 Fedora Linux 37 (Workstation Edition)
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Memory: 15.16 GB / 31.03 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 18.7.0 - /usr/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.18.0 - /usr/local/bin/npm
Browsers:
Chrome: 109.0.5414.74
Firefox: 108.0.1
npmPackages:
@sveltejs/adapter-auto: ^1.0.0 => 1.0.2
@sveltejs/kit: ^1.0.0 => 1.1.4
svelte: ^3.54.0 => 3.55.1
vite: ^4.0.0 => 4.0.4
Severity
annoyance
Additional Information
hanszoons and teemingc
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationready to implementplease submit PRs for these issues!please submit PRs for these issues!