Function useContextReducer
- useContextReducer<F, T, R, M>(__namedParameters: {
actionTypes: Record<string, M>;
actions: F;
initialState: T;
reducer: ((state: T, action: R) => T);
}): {
value: {
actions: F;
state: T;
};
}
-
Parameters
-
__namedParameters: {
actionTypes: Record<string, M>;
actions: F;
initialState: T;
reducer: ((state: T, action: R) => T);
}
-
actionTypes: Record<string, M>
-
actions: F
-
initialState: T
-
reducer: ((state: T, action: R) => T)
-
- (state: T, action: R): T
-
Returns T
Returns {
value: {
actions: F;
state: T;
};
}
-
value: {
actions: F;
state: T;
}