Skip to content
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

SSR data is shared #37

Closed
Brentlok opened this issue Jan 29, 2024 · 0 comments · Fixed by #38
Closed

SSR data is shared #37

Brentlok opened this issue Jan 29, 2024 · 0 comments · Fixed by #38

Comments

@Brentlok
Copy link
Collaborator

When using Next.js or some other SSR React framework, if we want to pass some data from server to client store (for example we can fetch user on the server and pass it to the store). We don't really have any way to do this with current api of the library, because store is created on the server only once, and not for every page render. Zustand had simillar issue before: pmndrs/zustand#182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant