Skip to content

Instantly share code, notes, and snippets.

@kulor
Created May 3, 2018 15:01
Show Gist options
  • Save kulor/92d7b284fec0550c18808dc1908bcefc to your computer and use it in GitHub Desktop.
Save kulor/92d7b284fec0550c18808dc1908bcefc to your computer and use it in GitHub Desktop.
Example configuration for Redux Persist
import storage from 'redux-persist/lib/storage' // defaults to localStorage for web and AsyncStorage for react-native
const reduxPersistConfig = {
key: 'root',
storage: storage,
blacklist: ['sensitive-data', 'ephemeral-state']
// Or:
whitelist: ['list-of-foos', 'list-of-bars']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment