I know the core idea of Redux is to have a single store. But if I have two different parts of my app; with decoupled information sets; if I want to create two separate stores … does Redux support this?
Yes, you can. The store is passed into a root component's context using react-redux, so you can just do that in each root separately. The only limitation is that there's no clean way to pass in multiple stores in the same component branch.
Alan Plum
Donkey Kong says Trans Rights.
Yes, you can. The store is passed into a root component's
contextusing react-redux, so you can just do that in each root separately. The only limitation is that there's no clean way to pass in multiple stores in the same component branch.