MCPcopy Create free account
hub / github.com/ngrx/platform / liftInitialState

Function liftInitialState

modules/store-devtools/src/reducer.ts:141–157  ·  view source on GitHub ↗
(
  initialCommittedState?: any,
  monitorReducer?: any
)

Source from the content-addressed store, hash-verified

139}
140
141export 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.

Callers 1

constructorMethod · 0.90

Calls 1

liftActionFunction · 0.90

Tested by

no test coverage detected