(action)
| 55 | } |
| 56 | |
| 57 | function dispatch(action) { |
| 58 | if (loopConfig.ENABLE_THUNK_MIGRATION && typeof action === 'function') { |
| 59 | return action(dispatch, store.getState); |
| 60 | } |
| 61 | const result = store.dispatch(action); |
| 62 | const cmdsToRun = cmdsQueue; |
| 63 | cmdsQueue = []; |
| 64 | return runCmds(cmdsToRun).then(() => result); |
| 65 | } |
| 66 | |
| 67 | function replaceReducer(reducer) { |
| 68 | return store.replaceReducer(liftReducer(reducer)); |