mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user