From 1dc47e590ac4d2b49e21d634336d4887d11b5ebb Mon Sep 17 00:00:00 2001 From: Supanut Apikulvanich Date: Fri, 5 Aug 2016 18:29:55 +0700 Subject: [PATCH] Updated createInteractor --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f945b97..cd40364 100644 --- a/README.md +++ b/README.md @@ -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) => { @@ -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],