Function: updateState()
updateState<
State
>(stateSource
,action
, ...updaters
):void
Defined in: libs/ngrx-toolkit/src/lib/devtools/update-state.ts:27
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
<Prettify
<State
>> | PartialStateUpdater
<Prettify
<State
>>)[]
updater functions or objects
Returns
void