Comparing version 0.26.0 to 0.26.1
@@ -9,7 +9,5 @@ 'use strict'; | ||
function connectLogicIfUnconnected(logic) { | ||
if (logic._isKeaSingleton) { | ||
if (!logic._keaReducerConnected) { | ||
(0, _reducer.addReducer)(logic.path, logic.reducer, true); | ||
logic._keaReducerConnected = true; | ||
} | ||
if (logic._isKeaSingleton && !logic._keaReducerConnected && logic.reducer) { | ||
(0, _reducer.addReducer)(logic.path, logic.reducer, true); | ||
logic._keaReducerConnected = true; | ||
} | ||
@@ -16,0 +14,0 @@ } // input: [ logic1, [ 'a', 'b as c' ], logic2, [ 'c', 'd' ] ] |
@@ -9,7 +9,5 @@ 'use strict'; | ||
function connectLogicIfUnconnected(logic) { | ||
if (logic._isKeaSingleton) { | ||
if (!logic._keaReducerConnected) { | ||
(0, _reducer.addReducer)(logic.path, logic.reducer, true); | ||
logic._keaReducerConnected = true; | ||
} | ||
if (logic._isKeaSingleton && !logic._keaReducerConnected && logic.reducer) { | ||
(0, _reducer.addReducer)(logic.path, logic.reducer, true); | ||
logic._keaReducerConnected = true; | ||
} | ||
@@ -16,0 +14,0 @@ } // input: [ logic1, [ 'a', 'b as c' ], logic2, [ 'c', 'd' ] ] |
{ | ||
"name": "kea", | ||
"version": "0.26.0", | ||
"version": "0.26.1", | ||
"description": "Smart front-end architecture", | ||
@@ -30,2 +30,3 @@ "author": "Marius Andra", | ||
"start": "BABEL_ENV=es babel -w src --out-dir es", | ||
"start:cjs": "babel -w src --out-dir lib", | ||
"size": "size-limit", | ||
@@ -32,0 +33,0 @@ "test": "jest", |
@@ -7,7 +7,5 @@ // input: [ logic1, [ 'a', 'b as c' ], logic2, [ 'c', 'd' ] ] | ||
function connectLogicIfUnconnected (logic) { | ||
if (logic._isKeaSingleton) { | ||
if (!logic._keaReducerConnected) { | ||
addReducer(logic.path, logic.reducer, true) | ||
logic._keaReducerConnected = true | ||
} | ||
if (logic._isKeaSingleton && !logic._keaReducerConnected && logic.reducer) { | ||
addReducer(logic.path, logic.reducer, true) | ||
logic._keaReducerConnected = true | ||
} | ||
@@ -14,0 +12,0 @@ } |
541775
13991