Last active
October 22, 2018 19:15
-
-
Save baso53/efb76f11e56fec47b24b8331cabba27f to your computer and use it in GitHub Desktop.
implementing-sagas-middleware-1
This file contains 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 default class MySaga { | |
constructor() { | |
this.actionWatchList = new Map(); | |
} | |
registerAction(actionType, handler) { | |
this.actionWatchList.set(actionType, handler); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment