Redux: Concepts: Store

 20th August 2020 at 2:19pm

The Store is the object that brings them together. The store has the following responsibilities:

  • Holds application state
  • Allows access to state via getState()
  • Allows state to be updated via dispatch(action)
  • Registers listeners via subscribe(listener)
  • Handles unregistering of listeners via the function returned by subscribe(listener)

Resources