Persist in nextjs ssr #260
-
Hello, I need some help. How to solve the localStorage/sessionStorage error, I am taking the following code from readme as a reference. |
Beta Was this translation helpful? Give feedback.
Answered by
AnatoleLucet
Dec 13, 2020
Replies: 1 comment
-
Hi 👋 this still an ongoing topic. This |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AnatoleLucet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋 this still an ongoing topic. This
persist
middleware will be subject to some breaking changes once we've reworked it.But for now you can use a dummy storage when the code is running on the server side. See #245 (comment) for an example.