Skip to content

Instantly share code, notes, and snippets.

@baso53
Last active October 22, 2018 19:15
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/efb76f11e56fec47b24b8331cabba27f to your computer and use it in GitHub Desktop.
Save baso53/efb76f11e56fec47b24b8331cabba27f to your computer and use it in GitHub Desktop.
implementing-sagas-middleware-1
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