Last active
January 8, 2019 20:57
-
-
Save beaucollins/2df58bb0cc7bdb612d8815225603710c 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
| const middleware: AppMiddleware = store => next => action => { | |
| const usersCreate = isProjectsCreate(action); | |
| if (usersCreate !== null) { | |
| // do something with usersCreate | |
| createProjectHTTP(usersCreate, store.getState()).then(store.dispatch); | |
| } | |
| return next(action); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment