Skip to content

When should we be using multiple stores instead of a single store with separate slices? #2496

Answered by dai-shi
lego-sharat asked this question in Q&A
Discussion options

You must be logged in to vote

My suggestion (as of now):

  • If two things are totally isolated, multiple stores would be good.
  • If they are slightly related, a single store would be good, because in the future you want an action to update both.
  • For the context use case, a single store might be easier, because you need only one React Context.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dbritto-dev
Comment options

You must be logged in to vote
2 replies
@dai-shi
Comment options

@dbritto-dev
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
4 participants