How can I use subscribeWithSelector with createStore? #2464
-
I have a webapp where I am fetching data on server side and then using this guide: https://docs.pmnd.rs/zustand/guides/nextjs I have the flow as this: user opens the webapp, data gets fetched on server side, then data is send to context, on client side the data is set into the zustand state as part of the context provider component. But when I use zustand state in this case I use it with |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Jun 17, 2024
Replies: 1 comment 2 replies
-
@ritvij14 were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ritvij14 @AshotN here you go:
Let's modify the example from nextjs guide: