Skip to content

Instantly share code, notes, and snippets.

@baso53
Last active October 22, 2018 19:16
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 baso53/e131b71cc7f08dcbbd5a5c26049a6737 to your computer and use it in GitHub Desktop.
Save baso53/e131b71cc7f08dcbbd5a5c26049a6737 to your computer and use it in GitHub Desktop.
implementing-sagas-effects-1
export const call = (fn, ...args) => {
return {
effect: 'effect/CALL',
payload: fn,
args: args
};
}
export const put = (action) => {
return {
effect: 'effect/PUT',
payload: action
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment