From c5fb61ad40d8c4f137874b831d75e7ed7ef376d7 Mon Sep 17 00:00:00 2001 From: oliv37 Date: Sun, 30 Apr 2017 02:51:29 +0200 Subject: [PATCH] fix injectAsyncReducer --- app/utils/asyncInjectors.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/asyncInjectors.js b/app/utils/asyncInjectors.js index c99e37f1ea..de9e75f3d1 100644 --- a/app/utils/asyncInjectors.js +++ b/app/utils/asyncInjectors.js @@ -33,6 +33,8 @@ export function injectAsyncReducer(store, isValid) { '(app/utils...) injectAsyncReducer: Expected `asyncReducer` to be a reducer function' ); + if (Reflect.has(store.asyncReducers, name)) return; + store.asyncReducers[name] = asyncReducer; // eslint-disable-line no-param-reassign store.replaceReducer(createReducer(store.asyncReducers)); };