title: React Redux Persist
body: <p>I just started to use Redux Persist, and for some reason I can't get it to work.
  (Cannot read property 'subscribe' of undefined error)</p>
  
  <p>Persistor.js</p>
  
  <pre><code>import { createStore } from 'redux'
  import { persistStore, persistReducer } from 'redux-persist'
  import store from 'redux-persist/es/storage/session' // defaults to 
  localStorage for web and AsyncStorage for react-native
  
  import rootReducer from './reducers'
  
  const persistConfig = {
      key: 'root',
      storage: store,
  }
  
  const persistedReducer = persistReducer(persistConfig, rootReducer)
  
  export default () =&gt; {
     let store = createStore(persistedReducer)
     let persistor = persistStore(store)
     return { store: store, persistor: persistor }
  }
  </code></pre>
  
  <p>index.js</p>
  
  <pre><code>import React from 'react';
  import App from './components/App/App';
  // import registerServiceWorker from './registerServiceWorker';
  import { render } from 'react-dom'
  import { createStore } from 'redux'
  import { Provider } from 'react-redux'
  import { PersistGate } from 'redux-persist/integration/react'
  import persistor from './Persistor'
  import rootReducer from './reducers'
  import 'bootstrap/dist/css/bootstrap.min.css'
  import './index.css'
  
  render(
     &lt;Provider store={persistor.persistor}&gt;
        &lt;PersistGate loading={null} persistor={persistor.store}&gt;
           &lt;App /&gt;
        &lt;/PersistGate&gt;
     &lt;/Provider&gt;,
     document.getElementById('root')
  )
  </code></pre>
  
  <p>with normal Redux its worked properly. But as soon I tried to switch Persist Redux I got the error I write above.</p>