Skip to content

Instantly share code, notes, and snippets.

@zaguiini
Created May 22, 2018 01:46
Show Gist options
  • Save zaguiini/72434ea5efb12122713f8f21e5620f92 to your computer and use it in GitHub Desktop.
Save zaguiini/72434ea5efb12122713f8f21e5620f92 to your computer and use it in GitHub Desktop.
import { takeLatest } from 'redux-saga/effects'
import {
CREATE_USER,
FETCH_USER,
} from 'src/store/definitions'
import {
createUserSaga,
fetchUserSaga,
} from './user'
function* rootSaga() {
yield takeLatest(CREATE_USER, createUserSaga)
yield takeLatest(FETCH_USER, fetchUserSaga)
}
export default rootSaga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment