Function: updateState()
updateState<
State>(stateSource,action, ...updaters):void
Defined in: libs/ngrx-toolkit/src/lib/devtools/update-state.ts:29
Wrapper of patchState for DevTools integration. Next to updating the state,
it also sends the action to the DevTools.
Type Parameters
• State extends object
Parameters
stateSource
WritableStateSource<State>
state of Signal Store
action
string
name of action how it will show in DevTools
updaters
...(Partial<NoInfer<State>> | PartialStateUpdater<NoInfer<State>>)[]
updater functions or objects
Returns
void