Function: withRedux()
withRedux<
Spec,Input,StateActionFns,PublicStoreActionFns>(redux):SignalStoreFeature<Input,EmptyFeatureResult&object>
Defined in: lib/with-redux.ts:362
Type Parameters
Spec
Spec extends ActionsFnSpecs
Input
Input extends SignalStoreFeatureResult
StateActionFns
StateActionFns extends ActionFnCreator<Record<string, Payload>> | ActionFnCreator<ActionsFnSpecs> = ActionFnsCreator<Spec>
PublicStoreActionFns
PublicStoreActionFns extends ActionFnCreator<Record<string, Payload>> | ActionFnCreator<ActionsFnSpecs> = PublicActionFns<Spec>
Parameters
redux
redux
properties do not start with with since they are not extension functions on their own.
no dependency to NgRx
actions are passed to reducer and effects, but it is also possible to use other actions. effects provide forAction and do not return anything. that is important because effects should stay inaccessible
actions
Spec
effects
EffectsFactory<StateActionFns>
reducer
ReducerFactory<StateActionFns, WritableStateSource<Input["state"]>>
Returns
SignalStoreFeature<Input, EmptyFeatureResult & object>