Question: Reflux - How do I decide whether to create a new store or extend an existing one?

Question

Reflux - How do I decide whether to create a new store or extend an existing one?

Answers 0
Added at 2016-05-24 18:05
Tags
Question

In theory, it seems like you could have a single store that keeps track of your entire application state or you could also have a store for each piece of data in your application or anywhere in between. I'm having trouble deciding where the ideal spot is along that spectrum.

How do I decide how to break up my application state into different stores? How do I know when I'm managing too much state in a single store? Is there a good heuristic for deciding what a single store should keep track of?

Answers to

Reflux - How do I decide whether to create a new store or extend an existing one?

Source Show
◀ Wstecz