Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 464 Bytes

File metadata and controls

13 lines (10 loc) · 464 Bytes

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] })