@stenajs-webui/redux
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -72,13 +72,8 @@ /*! ***************************************************************************** | ||
var reducerIdGate = function (reducerId, reducer) { return function (state, action) { | ||
if (state === undefined) { | ||
return reducer(undefined, {}); | ||
} | ||
if (!isValidReducerIdGateAction(action)) { | ||
if (state === undefined) { | ||
return reducer(undefined, {}); | ||
} | ||
else { | ||
return state; | ||
} | ||
return state; | ||
} | ||
if (state === undefined) { | ||
return reducer(state, action.action); | ||
} | ||
if (reducerId !== action.reducerId || | ||
@@ -85,0 +80,0 @@ action.type !== "REDUCER_ID_GATE:ACTION") { |
@@ -76,13 +76,8 @@ 'use strict'; | ||
var reducerIdGate = function (reducerId, reducer) { return function (state, action) { | ||
if (state === undefined) { | ||
return reducer(undefined, {}); | ||
} | ||
if (!isValidReducerIdGateAction(action)) { | ||
if (state === undefined) { | ||
return reducer(undefined, {}); | ||
} | ||
else { | ||
return state; | ||
} | ||
return state; | ||
} | ||
if (state === undefined) { | ||
return reducer(state, action.action); | ||
} | ||
if (reducerId !== action.reducerId || | ||
@@ -89,0 +84,0 @@ action.type !== "REDUCER_ID_GATE:ACTION") { |
{ | ||
"name": "@stenajs-webui/redux", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "", | ||
@@ -50,3 +50,3 @@ "author": "mattias800", | ||
], | ||
"gitHead": "2fc4e4a709d9430f95086aa75f76ee7f75043445" | ||
"gitHead": "042f06a43366332ca51e1e2a8d1ffe03fd1f7f37" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17
177467
1644