Skip to content

Instantly share code, notes, and snippets.

@brentmulligan
Last active August 27, 2016 16:50
Show Gist options
  • Save brentmulligan/0ae236374cb93b7f25e65bfaee40f3f4 to your computer and use it in GitHub Desktop.
Save brentmulligan/0ae236374cb93b7f25e65bfaee40f3f4 to your computer and use it in GitHub Desktop.
export default function* root() {
// yield an array of forked generator functions (watchers).
yield [
// Asyncly call each watcher
fork(watchReqProductList),
fork(watchReqProduct),
fork(watchCreateUser),
fork(watchReqUserAuth),
fork(watchCreateUserSession)
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment