Fix: RESTORE_ACTION should not be thenable (#77582)

Respect sync/async actions by reducer. RESTORE_ACTION is sync action so
should not return a `thenable`.
This commit is contained in:
Jude Gao
2025-03-28 12:58:39 -04:00
committed by GitHub
parent c5d401150e
commit d851bbc14c
@@ -199,7 +199,7 @@ export function createMutableActionQueue(
state: initialState,
dispatch: (payload: ReducerActions, setState: DispatchStatePromise) =>
dispatchAction(actionQueue, payload, setState),
action: async (state: AppRouterState, action: ReducerActions) => {
action: (state: AppRouterState, action: ReducerActions) => {
const result = reducer(state, action)
return result
},