Skip to content

Commit

Permalink
Updated createInteractor
Browse files Browse the repository at this point in the history
  • Loading branch information
zugarzeeker committed Aug 5, 2016
1 parent e140ba9 commit 1dc47e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ const createActions = (prefix, key) => {
};

const createReducer = (actions, multipleCallback) => {
const { callbackWaiting, callbackSuccess, callbackFail } = { ...initialCallback, ...multipleCallback };
const { callbackWaiting, callbackSuccess, callbackFail } = {
...initialCallback, ...multipleCallback
};
const { REQUEST, SUCCESS, FAIL } = actions;
const reducer = handleActions({
[REQUEST]: (state, action) => {
Expand Down Expand Up @@ -125,7 +127,7 @@ const mergeReducer = (multiReducers) => {
return reducer;
};

const createInteractor = (method, url, data, actions) => {
const createInteractor = (actions) => {
const { REQUEST, SUCCESS, FAIL } = actions;
const httpRequest = (method, url, data) => ({
types: [REQUEST, SUCCESS, FAIL],
Expand Down

0 comments on commit 1dc47e5

Please sign in to comment.