Persisting Data in a next.js ssr application #516
-
Hello, I'm just getting into learning about zustand. I was having difficulty finiding resources on the topic, but I am wanting to know, how would I go about persisting data with zustand between pages in a next application that uses server side rendering? |
Beta Was this translation helpful? Give feedback.
Answered by
AnatoleLucet
Jul 29, 2021
Replies: 1 comment 1 reply
-
Hi, apart from what was discussed in #510 (which is pretty minor as long as you don't want to access the storage's data on the server), you should be able to use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Julius-R
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, apart from what was discussed in #510 (which is pretty minor as long as you don't want to access the storage's data on the server), you should be able to use the
persist
middleware as if it was any regular CSR React app.