Skip to content

Instantly share code, notes, and snippets.

@emanueleDiVizio
Created June 9, 2020 14:44
Show Gist options
  • Save emanueleDiVizio/38e3042b31d93c3ada89c6653b90db71 to your computer and use it in GitHub Desktop.
Save emanueleDiVizio/38e3042b31d93c3ada89c6653b90db71 to your computer and use it in GitHub Desktop.
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