Created
June 8, 2020 14:49
-
-
Save emanueleDiVizio/8fffbe067f53640edbd08d804270d41c 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 { all } from 'redux-saga/effects'; | |
import saga1 from './saga1'; | |
import saga2 from './saga2'; | |
import { networkSaga } from 'react-native-offline'; | |
export default function* rootSaga(): Generator<*, *, *> { | |
yield all([ | |
fork(saga1), | |
fork(saga2), | |
fork(networkSaga, { pingInterval: 20000 }), | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment