Created
May 3, 2018 15:01
-
-
Save kulor/92d7b284fec0550c18808dc1908bcefc to your computer and use it in GitHub Desktop.
Example configuration for Redux Persist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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