( initialCommittedState?: any, monitorReducer?: any )
| 139 | } |
| 140 | |
| 141 | export function liftInitialState( |
| 142 | initialCommittedState?: any, |
| 143 | monitorReducer?: any |
| 144 | ): LiftedState { |
| 145 | return { |
| 146 | monitorState: monitorReducer(undefined, {}), |
| 147 | nextActionId: 1, |
| 148 | actionsById: { 0: liftAction(INIT_ACTION) }, |
| 149 | stagedActionIds: [0], |
| 150 | skippedActionIds: [], |
| 151 | committedState: initialCommittedState, |
| 152 | currentStateIndex: 0, |
| 153 | computedStates: [], |
| 154 | isLocked: false, |
| 155 | isPaused: false, |
| 156 | }; |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Creates a history state reducer from an app's reducer. |
no test coverage detected