Global vs Scoped Store in Zustand for Multiple Component Instances in Next.js 14: Which Approach is Better? #2772
-
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Oct 5, 2024
Replies: 1 comment 8 replies
-
@ironexdev I encourage you to read our "nextjs" and "ssr and hydration" guides, but in a nutshel we do not recommend global stores in Nextjs. If you use |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ironexdev may this is helpful -> https://zustand.docs.pmnd.rs/hooks/use-store
btw, either approach is good
App Scope Store
andPage Scope Store
are recommended shouldn't be any difference as far as I know