Last active
October 22, 2018 19:16
-
-
Save baso53/e131b71cc7f08dcbbd5a5c26049a6737 to your computer and use it in GitHub Desktop.
implementing-sagas-effects-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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