redux-persist-transform-compress
v4.2.0
Published
compress your redux state
Downloads
13,718
Maintainers
Readme
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] })