Ш
Size: a a a
Ш
A
S
Т
export function forceUpdatePrev(currentStep: number): AsyncActionType {
return async (dispatch: DispatchType) => {
dispatch(setNextStep(currentStep - 1));
setTimeout(() => document
.getElementById(`step${currentStep}`)
.dispatchEvent(new Event('submit')), 1000);
};
}EZ
export function forceUpdatePrev(currentStep: number): AsyncActionType {
return async (dispatch: DispatchType) => {
dispatch(setNextStep(currentStep - 1));
setTimeout(() => document
.getElementById(`step${currentStep}`)
.dispatchEvent(new Event('submit')), 1000);
};
}AE
Т
NR
NR
▲
export function forceUpdatePrev(currentStep: number): AsyncActionType {
return async (dispatch: DispatchType) => {
dispatch(setNextStep(currentStep - 1));
setTimeout(() => document
.getElementById(`step${currentStep}`)
.dispatchEvent(new Event('submit')), 1000);
};
}EZ
S
Т
EZ
EZ
Т
Т
step${currentStep})Т
EZ
step${currentStep})await dispatch(setNextStep(currentStep - 1));
await dispatch(useCurrentStepAndSendEvent);
EZ