Skip to content

Global vs Scoped Store in Zustand for Multiple Component Instances in Next.js 14: Which Approach is Better? #2772

Answered by dbritto-dev
ironexdev asked this question in Q&A
Discussion options

You must be logged in to vote

@ironexdev may this is helpful -> https://zustand.docs.pmnd.rs/hooks/use-store

btw, either approach is good App Scope Store and Page Scope Store are recommended shouldn't be any difference as far as I know

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@dbritto-dev
Comment options

@dbritto-dev
Comment options

@ironexdev
Comment options

@dbritto-dev
Comment options

Answer selected by ironexdev
@dbritto-dev
Comment options

@ironexdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants