Last active
January 6, 2018 22:12
-
-
Save rredkovich/b1ec7c45262f9ee8392f49f7fcabc0dd to your computer and use it in GitHub Desktop.
redx-saga runSaga example
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
import { downloadFile } from '../sagas'; | |
// strore should be created at this point | |
const forceLoadFile = (url) => { | |
runSaga({'dispatch': store.dispatch, | |
// 'subscribe': null, | |
'getState': store.getState, | |
'context': null, | |
// 'sagaMonitor': null, | |
// 'logger': null, | |
// 'onError': null | |
}, | |
downloadFile, {'file': url}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment