How can I get "store" value used in SSR into CSR? #9516
-
In order to implement a fast and beautiful page, the page was implemented as follows.
The SSR itself runs perfectly, but there is a problem that the data at the time of the SSR disappears as the CSR runs.
The ideal solution, I think, is to use a method called "hydrating" to import the store created in the SSR into the CSR. What do you think would be a good way to solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
eltigerchino
Mar 26, 2023
Replies: 1 comment 1 reply
-
This page might be a helpful read https://kit.svelte.dev/docs/state-management#no-side-effects-in-load |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
myyrakle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This page might be a helpful read https://kit.svelte.dev/docs/state-management#no-side-effects-in-load