-
-
Save reime005/82c75f3abc5dd34682c2581be87dd047 to your computer and use it in GitHub Desktop.
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
/* 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