Skip to content

Instantly share code, notes, and snippets.

@ryo33
Last active September 7, 2016 04:24
Show Gist options
  • Save ryo33/fd4b79311767dda845aef4403c81cf80 to your computer and use it in GitHub Desktop.
Save ryo33/fd4b79311767dda845aef4403c81cf80 to your computer and use it in GitHub Desktop.
function* before() {
yield fork(function*() {
yield* takeEvery('FETCH_USERS', fetchUsers)
})
yield fork(function*() {
yield* takeEvery('CREATE_USER', createUser)
})
}
function* after() {
yield fork(takeEvery, 'FETCH_USERS', fetchUsers)
yield fork(takeEvery, 'CREATE_USER', createUser)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment