Created
July 10, 2018 10:32
-
-
Save freeznet/a7a6b4c2d74c2aef5a6885ce127377d8 to your computer and use it in GitHub Desktop.
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
| effects: { | |
| *fetch({ payload }, { put }) { | |
| bla bla bla | |
| yield bla bla bla | |
| }, | |
| *bulkFetch({ payload }, { all, put }) { | |
| const quests = payload.map(v => { | |
| return put({ | |
| type: 'fetch', | |
| payload: v, | |
| }); | |
| }); | |
| yield all(quests); | |
| }, | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment