Abstract
Static
actionsStatic
createCreates a Redux reducer based on the methods of the instantiated class.
class Reducer extends AbstractReducer {
// optional static var to allow adding type for auto-complete
// ActionPayload< payload interface / state >
static override actions: ActionPayload<Reducer>;
@Action
deleteBug(state: Auth, action: AnyAction) {
return { active_bug: !state.active_bug };
}
}
export const authReducer = Reducer.createReducer(BUG_INITIAL_STATE);
A Redux reducer that can be used with createStore.
The class constructor.
The initial state for the reducer.
Generated using TypeDoc
Hold a map of all dispatch action that generated by decorator
Example