Optional config?: Config<TState>The new config of the container.
The id of the container to update. Container must be registered before.
Optional state?: Partial<TState>The new state of the container.
Please note, you don't have to provide the whole state, but only necessary set of attributes.
Generated using TypeDoc
A "special" function to instantly modify a registered state container.
The caveats:
reducerdoes not get called, so the state gets modified beyondreducerregisterStateChangedCallback()or registerActionDispatchedCallback()`) get invoked.This "special" way of modifying state container shouldn't be used in the most circumstances, because modifying the state pulls out the logic outside the reducer.
The recommended and typical scenario is as the following:
dispatchAction()function)reducerreducergets processed and a new state object is createdThere are cases when you want to modify the state container directly, make it "silently" and immediately: in most cases because of performance optimizations.