Types of State in Redux Store

There are 3 types of State in any App/Component:

  • Application State
    • Peristant Stuff that multiple components care about
  • UI State
    • Ephemeral Stuff that is local to the container component and dies with it.
  • Router State
    • Routing Info of the App

Application and Routing states should Compulsorily be put in the Redux Store.

As for the UI State, it’s optional. The rule of thumb is to put it into the Store unless it’s Awkward

read more:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s