lib/store/utils/createPersistStore.js
function createPersistStore(reduxStore) {
    var persistor = (0, _reduxPersist.persistStore)(reduxStore);
    var dispatch = persistor.dispatch,
        getState = persistor.getState;


    reduxStore.persistor = persistor;
    reduxStore.getState.persistor = getState;
    reduxStore.dispatch.persistor = dispatch;
    reduxStore.dispatch.persistor = Object.assign(reduxStore.dispatch.persistor, {
        flush: persistor.flush,
        pause: persistor.pause,
        persist: persistor.flush,
        purge: persistor.purge
    });

    return reduxStore;
}
function createPersistStore(reduxStore) {
    var persistor = (0, _reduxPersist.persistStore)(reduxStore);
    var dispatch = persistor.dispatch,
        getState = persistor.getState;


    reduxStore.persistor = persistor;
    reduxStore.getState.persistor = getState;
    reduxStore.dispatch.persistor = dispatch;
    reduxStore.dispatch.persistor = Object.assign(reduxStore.dispatch.persistor, {
        flush: persistor.flush,
        pause: persistor.pause,
        persist: persistor.flush,
        purge: persistor.purge
    });

    return reduxStore;
}
function createPersistStore ( reduxStore ) { var persistor = ( 0 , _reduxPersist . persistStore ) ( reduxStore ) ; var dispatch = persistor . dispatch , getState = persistor . getState ; reduxStore . persistor = persistor ; reduxStore . getState . persistor = getState ; reduxStore . dispatch . persistor = dispatch ; reduxStore . dispatch . persistor = Object . assign ( reduxStore . dispatch . persistor , { flush : persistor . flush , pause : persistor . pause , persist : persistor . flush , purge : persistor . purge } ) ; return reduxStore ; }
Create persist store as a property inside the redux store
@return { Object } Redux Store Object Shape
Create persist store as a property inside the redux store