Open
Description
Hi!
const [state, dispatch] = useCombinedReducers<
{ documentWizard: DocumentWizardState; steps: StepState },
documentWizardActions & StepActions
>({
documentWizard: useReducer(
documentWizardReducer,
initialDocumentWizardState
),
steps: useReducer(stepReducer, initialStepState),
});
What is the correct way of providing the documentWizardActions & StepActions as second argument to the types of useCombinedReducers? The union operator does not work, also not the if ( | ) operator.
Metadata
Metadata
Assignees
Labels
No labels