-
-
Save AllGistsEqual/5483ade79e70a4401cbf7cc89b59c929 to your computer and use it in GitHub Desktop.
This file contains 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
// File: src/redux/index.ts (partial 1) | |
import { persistStore, persistReducer } from 'redux-persist' | |
import AsyncStorage from '@react-native-async-storage/async-storage' | |
const persistConfig = { | |
key: 'root', | |
storage: AsyncStorage, | |
whitelist: ['user'], | |
} | |
const persistedReducer = persistReducer(persistConfig, rootReducer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment