npm.io
0.2.0 • Published 7 years ago

storeon-localstorage

Licence
MIT
Version
0.2.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
65
DeprecatedThis package is deprecated

storeon-localstorage

Installation

yarn add storeon-localstorage

Usage

import persistState from 'storeon-localstorage'

const store = createStore([
  /* modules */
 persistState(), 
])
persistState(path, config)
type path = Void | String | Array<String>

If no pass the path value then persistState store in local storage all state.

type config.key = String

Default value of config.key is storeon. This key used to store date in local storage.

LICENSE

MIT

Acknowledgments

This module based on redux-localstorage.