reducerFactory
Generic types: | T |
This creates a reducer for the give source. It is used internally and documented here for future contributions. Application code should never need to use this function.
Presentation
function reducerFactory (
feature: string,
entity: string,
): ActionReducer<EntityState<T>, Action<string>>;
Returns
ActionReducer<EntityState<T>, Action<string>>
-a new reducer for the source provided
Parameters
Name | Type | Description |
---|---|---|
feature | string | The feature name for this reducer |
entity | string | The entity name (source) for this reducer |