Created
June 9, 2020 14:44
-
-
Save emanueleDiVizio/38e3042b31d93c3ada89c6653b90db71 to your computer and use it in GitHub Desktop.
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 { createStore, applyMiddleware } from 'redux'; | |
import { createNetworkMiddleware } from 'react-native-offline'; | |
import createSagaMiddleware from 'redux-saga'; | |
const sagaMiddleware = createSagaMiddleware(); | |
const networkMiddleware = createNetworkMiddleware({ | |
queueReleaseThrottle: 200, | |
}); | |
const store = createStore( | |
rootReducer, | |
applyMiddleware(networkMiddleware, sagaMiddleware) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment