Skip to content

Instantly share code, notes, and snippets.

@rredkovich
Last active January 6, 2018 22:12
Show Gist options
  • Save rredkovich/b1ec7c45262f9ee8392f49f7fcabc0dd to your computer and use it in GitHub Desktop.
Save rredkovich/b1ec7c45262f9ee8392f49f7fcabc0dd to your computer and use it in GitHub Desktop.
redx-saga runSaga example
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