Madeline Ries
Madeline Ries

Reputation: 629

put state on redux's store if it's async state

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

Answers (1)

Dyo
Dyo

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

Related Questions