UNPKG

react-redux-isomorphic

Version:

Set of utilities for creating isomorphic applications using react-redux

14 lines (10 loc) 387 B
import { componentInitialState } from './reducer'; var getComponentState = function getComponentState(storeState, isomorphicId) { var componentsParams = storeState.reactReduxIsomorphic.componentsParams; var componentState = componentsParams[isomorphicId]; if (componentState) { return componentState; } return componentInitialState; }; export default getComponentState;