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
import fetch from 'isomorphic-fetch'; | |
import merge from 'lodash.merge'; | |
export default ({ dispatch, getState }) => { | |
return next => action => { | |
if (typeof action === 'function') { | |
return action(dispatch, getState); | |
} | |
const { type, api, request, method = 'GET', ...rest } = action; |
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
### Keybase proof | |
I hereby claim: | |
* I am archienorman11 on github. | |
* I am archienorman (https://keybase.io/archienorman) on keybase. | |
* I have a public key ASAzv90M9-F0QA250E4oG7z9KwgSSJrG4qjCjYJFp01cewo | |
To claim this, I am signing this object: |