Skip to content

Redux

What is Redux?

Redux is a predictable global state management library which works with React. This is used throughout the Cubed Dash project to manage global states; values that are required by multiple components. In our application this should not be used for component level state management.

When to use and not use Redux in Cubed?

As mentioned Redux should be used when data needs to be provided to different parts of the application. For example, a notification needs to be displayed, by updating the notification store, the notification view will react to it and display a notification.

Also as mentioned do not use this for component level state management, that should be left to the component state / prop.

Current Stores

Stores are just the way redux manages data and the state tree when values are updated.

Currently we have the following stores: