Skip to content

rt2zz/redux-persist-transform-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published