redux-saga-model
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -108,3 +108,4 @@ "use strict"; | ||
initialMiddleware: [], | ||
initialModels: [] | ||
initialModels: [], | ||
preff: "" | ||
}, createOpts); | ||
@@ -148,2 +149,8 @@ | ||
value: function checkModel(m, baseModels, hot) { | ||
var privateProps = installPrivateProperties[this.__sagaModelKey]; | ||
// 预置前缀 | ||
if (privateProps.preff) { | ||
m.namespace = "" + privateProps.preff + SEP + m.namespace; | ||
} | ||
// Clone model to avoid prefixing namespace multiple times | ||
@@ -193,2 +200,4 @@ var model = (0, _extends3.default)({}, m); | ||
console.log(model); | ||
return model; | ||
@@ -266,3 +275,3 @@ } | ||
// Cancel sagas | ||
m && (0, _keys2.default)(m.sagas).forEach(function (key) { | ||
m[0] && (0, _keys2.default)(m[0].sagas).forEach(function (key) { | ||
store.dispatch({ | ||
@@ -269,0 +278,0 @@ type: key + "/@@CANCEL_EFFECTS" |
{ | ||
"name": "redux-saga-model", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "flatten": "^1.0.2", |
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
307357
1094