From e49a56b2c1ed3bdfa4e3c2b18d727c38e99cf192 Mon Sep 17 00:00:00 2001 From: Mike Ryan Date: Mon, 8 Feb 2016 23:58:20 -0600 Subject: [PATCH] Export liftAction, liftReducerWith, and unliftState from instrument.js --- src/instrument.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/instrument.js b/src/instrument.js index 3b6d5678..9b748f9e 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -131,14 +131,14 @@ function recomputeStates( /** * Lifts an app's action into an action on the lifted store. */ -function liftAction(action) { +export function liftAction(action) { return ActionCreators.performAction(action); } /** * Creates a history state reducer from an app's reducer. */ -function liftReducerWith(reducer, initialCommittedState, monitorReducer) { +export function liftReducerWith(reducer, initialCommittedState, monitorReducer) { const initialLiftedState = { monitorState: monitorReducer(undefined, {}), nextActionId: 1, @@ -300,7 +300,7 @@ function liftReducerWith(reducer, initialCommittedState, monitorReducer) { /** * Provides an app's view into the state of the lifted store. */ -function unliftState(liftedState) { +export function unliftState(liftedState) { const { computedStates, currentStateIndex } = liftedState; const { state } = computedStates[currentStateIndex]; return state;