Skip to content

Commit

Permalink
Fix config for persistStore (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienthiery authored and rgommezz committed Dec 23, 2019
1 parent d6e49e4 commit 18389c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ export default function configureStore(callback) {
const store = createStore(rootReducer, applyMiddleware(networkMiddleware));
const { connectionChange } = offlineActionCreators;
// https://github.com/rt2zz/redux-persist#persiststorestore-config-callback
persistStore(store, { storage: AsyncStorage }, () => {
persistStore(store, null, () => {
// After rehydration completes, we detect initial connection
checkInternetConnection().then(isConnected => {
store.dispatch(connectionChange(isConnected));
Expand Down

0 comments on commit 18389c2

Please sign in to comment.