Function: setResetState()
setResetState<
State>(store,state):void
Defined in: lib/with-reset.ts:52
Sets the reset state of the store to the given state.
Throws an error if the store is not configured with withReset.
Type Parameters
State
State extends object
Parameters
store
StateSource<State>
the instance of a SignalStore
state
State
the state to set as the reset state
Returns
void