I would use ProjectStore to store both _projects and _activeProject .
In my React projects, I made, as a rule, to create a new store for each model. For example: let's say that I have an application that serves messages and accounts. Then I would have a MessageStore and AccountStore . Then use them accordingly in your domain. For example, when I want to receive some messages from the backend (via the API), I store them in a MessageStore . The same goes for AccountStore .
As your project gets bigger and bigger, you may have to rethink the reorganization of something in the new store. For example, if you want to add ads to your site, you can create an AdsStore .
My rule is to try to separate stores by their domain, but does not make the structure more complex than it should be.
Hope this helps.
source share