redux-persist-transform-compress
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

redux-persist-transform-compress

Uses lz-string to compress state before storing.

Usage

import createCompressor from 'redux-persist-transform-compress'
 
const compressor = createCompressor()
const compressor = createCompressor({ whitelist: ['someGiganticReducer'] }) // or
const compressor = createCompressor({ blacklist: ['someSpecialReducer'] }) // or
 
persistStore(store, { transforms: [compressor] })

Package Sidebar

Install

npm i redux-persist-transform-compress

Weekly Downloads

3,093

Version

4.2.0

License

MIT

Last publish

Collaborators

  • rt2zz