Skip to content

Instantly share code, notes, and snippets.

@reime005
Last active September 14, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/82c75f3abc5dd34682c2581be87dd047 to your computer and use it in GitHub Desktop.
Save reime005/82c75f3abc5dd34682c2581be87dd047 to your computer and use it in GitHub Desktop.
/* src/store/rootSaga.js */
//... imports
function* sendMediaSaga() {
const result = yield call(fetch, 'https://example-api.com/test');
const { increment } = yield result.json();
yield put(testIncremenReduxAction({ increment }));
// yield put({ type: 'TEST_INCREMENT_ACTION', payload: increment })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment