Numerous Packages Multiply

    redux-persistate

    1.0.3 • Public • Published

    redux-persistate

    Installation

    npm i -S redux-persistate

    Usage

    Save state

    import { saveState } from 'redux-persistate'
     
    store.subscribe(() => {
      saveState({user : store.getState().user})
    })

    Load state

    import { loadState } from './lib/localStorage'
     
    const defaultState = loadState()
    export const store = createStore(rootReducer, defaultState)

    Install

    npm i redux-persistate

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • didierfranc