@eknkc/dux
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -145,5 +145,7 @@ 'use strict'; | ||
var nilAction = createAction("NIL")(); | ||
function scopeReducer(scope, reducer) { | ||
return function (state, action) { | ||
if (!action || !action.meta || action.meta.scope !== scope) return state; | ||
if (!action || !action.meta || action.meta.scope !== scope) return reducer(state, nilAction); | ||
@@ -150,0 +152,0 @@ return reducer(state, action); |
@@ -100,6 +100,8 @@ import Immutable from 'seamless-immutable' | ||
const nilAction = createAction("NIL")(); | ||
export function scopeReducer(scope, reducer) { | ||
return (state, action) => { | ||
if (!action || !action.meta || action.meta.scope !== scope) | ||
return state; | ||
return reducer(state, nilAction); | ||
@@ -106,0 +108,0 @@ return reducer(state, action); |
{ | ||
"name": "@eknkc/dux", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Redux helpers", | ||
@@ -5,0 +5,0 @@ "main": "build.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10525
249