Controller
Properties
get stateNamespace()
Defines the namespace on the Redux store for the Controller. Multiple controllers can share the same namespace.
get state()
Getter which can be used the retrieve the current Redux store state inside an action, conveniently as this.state
set state(definition)
Setter which defines the Redux store state which will be mapped to the React component.
Methods
connect()
This performs a call to the connect() utility from react-redux given the currently defined actions and store state from the controller.
The resulting reducers and middleware watchers won't be added to the global reducer until the component is appended to the root component, usually as a Route using the React-Router.
directConnect(componentName)
This is the same as .connect()
but the resulting reducers and middleware watchers will be added immediately to the global reducer.
Last updated