redux-subspace
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -113,4 +113,6 @@ import { compose } from 'redux'; | ||
*/ | ||
var REDUX_PREFIX = '@@redux/'; | ||
var isGlobal = function isGlobal(action) { | ||
return !action.type || action.globalAction === true; | ||
return !action.type || action.globalAction === true || action.type.startsWith(REDUX_PREFIX); | ||
}; | ||
@@ -117,0 +119,0 @@ |
@@ -117,4 +117,6 @@ 'use strict'; | ||
*/ | ||
var REDUX_PREFIX = '@@redux/'; | ||
var isGlobal = function isGlobal(action) { | ||
return !action.type || action.globalAction === true; | ||
return !action.type || action.globalAction === true || action.type.startsWith(REDUX_PREFIX); | ||
}; | ||
@@ -121,0 +123,0 @@ |
{ | ||
"name": "redux-subspace", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Create isolated subspaces of a Redux store", | ||
@@ -69,3 +69,3 @@ "author": "Michael Peyper", | ||
}, | ||
"gitHead": "d4c95fbf50fc93e4abfa2bcff742a51f249f0ad7" | ||
"gitHead": "0ef4fae05d882b62b0806d18c71a8a7cf0f2d209" | ||
} |
@@ -8,5 +8,6 @@ /** | ||
*/ | ||
const REDUX_PREFIX = '@@redux/' | ||
const isGlobal = (action) => !action.type || action.globalAction === true | ||
const isGlobal = (action) => !action.type || action.globalAction === true || action.type.startsWith(REDUX_PREFIX) | ||
export default isGlobal | ||
export default isGlobal |
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
54907
1363