Skip to main content

Function: withReset()

withReset(): SignalStoreFeature<EmptyFeatureResult, {}>

Defined in: libs/ngrx-toolkit/src/lib/with-reset.ts:21

Adds a resetState method to the store, which resets the state to the initial state.

If you want to set a custom initial state, you can use setResetState.

Returns

SignalStoreFeature<EmptyFeatureResult, {}>