-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Missing getServerSnapshot, which is required for server-rendered content. #987
Comments
I have found the solution, as reported in an earlier issue. My linter automatically imported
Originally posted by @dai-shi in #963 (comment) |
Wow, I overlooked this situation. How could it be made more clearly in docs? Suggestion PRs are welcome. |
@dai-shi It's my first time using Zustand today and I encountered the same error. Can the docs be clearer on specifying where 'useStore' should be imported from since 'useStore' is what's used as the example. I scanned several webpages before finding the solution here. |
@appohfaiths I think we fixed most of |
It seems this error happens whenever I try to use any hooks in Next.js. I saw this error referenced earlier in the issues but it said it was fixed in
4.0.0-beta.3
, I am using4.0.0-rc.1
which I believe is a later update. Regardless, switching to4.0.0-beta.3
still causes the same issue.#886
This is my first time trying Zustand, so perhaps I've set it up wrong.
Store.jsx:
Particles.jsx:
The text was updated successfully, but these errors were encountered: