Skip to content

Instantly share code, notes, and snippets.

View archienorman11's full-sized avatar

Archie Norman archienorman11

View GitHub Profile
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;
@archienorman11
archienorman11 / gist:24d97c53f0299282b01e2fe2a1be83d1
Created July 18, 2018 13:17
^[[1m^[[31mkeybase.md^[[39m^[[22m
### 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: