From 35583369180e4404df65a54d5c5c96efc47211d3 Mon Sep 17 00:00:00 2001 From: Vladimir Metnev Date: Wed, 18 Oct 2017 23:50:57 +0300 Subject: [PATCH] feat(actons/utils): disable "FINALLY", "BEFORE_PENDING" in awral feat(actons/utils): disable "FINALLY", "BEFORE_PENDING" in awral --- src/common/actions/utils/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common/actions/utils/index.js b/src/common/actions/utils/index.js index 647fc3ce..104b7415 100644 --- a/src/common/actions/utils/index.js +++ b/src/common/actions/utils/index.js @@ -1,5 +1,5 @@ // @flow -import Awral from 'awral' +import Awral from './awral' /** * `parseJSON()` adds property "ok" * that identicates that response is OK @@ -12,6 +12,11 @@ import Awral from 'awral' const check = (result: Object = {ok: false}): boolean => result.ok const beforeCheck = a => a const afterCheck = a => a.data +// disable dispatch of GET_LINKS_FINALLY +const finallyAction = null +// disable dispatch of GET_LINKS_BEFORE_PENDING +const beforePending = null + /** Create default Awral Awral is not recommended for production usage now @@ -20,4 +25,4 @@ const afterCheck = a => a.data Awral is 880B gzipped! {@link https://github.com/Metnew/awral} */ -export const awral = Awral.of({check, beforeCheck, afterCheck}) +export const awral = Awral.of({check, beforeCheck, afterCheck, finally: finallyAction, beforePending})