Skip to content

Instantly share code, notes, and snippets.

@radzionc
Created April 27, 2018 16:55
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 radzionc/0d283d8fba914f37239a3d76912e2c79 to your computer and use it in GitHub Desktop.
Save radzionc/0d283d8fba914f37239a3d76912e2c79 to your computer and use it in GitHub Desktop.
const someAction = createAction('some action')
function* someSaga() {
// make some async staff
}
export default function* saga() {
yield takeLatest(someAction.getType(), someSaga)
// and for each action the same staff ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment