title: Unable to access Reducer & state values
body: <p>I am unable to access my state values saved in store on any screen. values reach to actions but when I access it from store it returns always undefined.
  Every thing is in separate files</p>
  <p>Reducer 1</p>
  <pre><code>import * as Actions from '../actionTypes'
  import initialStore from './initialStore'
  
  const homeModuleReducer = (state = initialStore, action) =&gt; {
      switch (action.type) {
          case Actions.SET_PROFILE_ONE:
              console.log('call here')
              return {
                  ...state,
                  currentUser: action.profile
              }
          default:
              return state;
      }
  }
  
  export default homeModuleReducer
  </code></pre>
  <p>Reducer 2</p>
  <pre><code>import * as Actions from '../actionTypes'
  import initialStore from './initialStore'
  
  const loginModuleReducer = (state = initialStore, action) =&gt; {
      switch (action.type) {
          case Actions.SET_PROFILE:
              return {
                  ...state,
                  currentUser: action.profile
              }
          case Actions.SET_INITIAL_LOADING_STATUS:
              return {
                  ...state,
                  isInitialLoadingDone: action.loadingStatus
              }
          default:
              return state;
      }
  }
  
  export default loginModuleReducer
  </code></pre>
  <p>Combine Reducer</p>
  <pre><code>import { combineReducers } from 'redux'
  import homeModuleReducer from './homeModuleReducer'
  import loginModuleReducer from './loginModuleReducer'
  
  export default combineReducers({
      homeModuleReducer,
      loginModuleReducer,
  })
  </code></pre>
  <p>Store</p>
  <pre><code>import { createStore, applyMiddleware } from 'redux'
  import thunkMiddleware from 'redux-thunk';
  import rootReducer from './reducers'
  
  let store = createStore(rootReducer, applyMiddleware(thunkMiddleware));
  
  export default store;
  </code></pre>
  <p>usage:</p>
  <pre><code>const mapStateToProps = (state) =&gt; ({
      stateLoaded: state.rootReducer.isInitialLoadingDone,
      profile: state.rootReducer.currentUser
  });
  </code></pre>
  <p>Error:</p>
  <p>undefined is not an object (evaluating 'state.rootReducer.isInitialLoadingDone')</p>