Reputation: 629
I have confusion what state should be put on reducer/store in redux after writing react redux app for a while. Like toggle state, dropdown state, those 'minimal' shouldn't be in the store right? because that belong's to the UI's, it won't be used or shared between multiple components.
So I assume put the states that is async into store of redux, am I correct?
Upvotes: 0
Views: 28
Reputation: 4464
You can store whatever you want you'll use in different places in your app, fetched data or not.
For example you probably want to keep and use in different components in your app some settings your user configured, or to save form data before sending...
Upvotes: 1