Replies: 3 comments 11 replies
-
@spyderdsn here you go https://stackblitz.com/edit/nextjs-and-zustand-persist?file=README.md |
Beta Was this translation helpful? Give feedback.
-
@spyderdsn would you mind following our nextjs guide? |
Beta Was this translation helpful? Give feedback.
-
Hi @dbritto-dev I've spent two days working this out, used ChatGPT & Copilot, supply your documentation and even with their help I'm going around the circle. There is room for improvement on the documentation side. Could you please have a look what I have now? The state saves and stays on refresh hoverer I'm still getting an error regarding rehydration. Page
Store
|
Beta Was this translation helpful? Give feedback.
-
Hi, I'm having an issue with the hydration issue while using the persist storage + ant inputs or selects. I've looked into other discussions eg. #2230 but this did not help here.
Here is my example: https://codesandbox.io/p/devbox/agitated-pare-w2w52p?file=%2Fapp%2Flayout.tsx%3A9%2C47&workspaceId=c289018d-a067-4abf-86ce-f20ef54dab9d
When you change the selection from 5 years to 10 years and hit refresh, 2 errors will pop up.
How do I get around this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions