redux-saga-model
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -155,3 +155,5 @@ "use strict"; | ||
if (privateProps.prefix) { | ||
model.namespace = "" + privateProps.prefix + SEP + m.namespace; | ||
if (model.namespace !== '@@saga-model-prefix') { | ||
model.namespace = "" + privateProps.prefix + SEP + m.namespace; | ||
} | ||
} | ||
@@ -887,2 +889,8 @@ var namespace = model.namespace, | ||
}); | ||
// 将当前 prefix 放在 state 中方便使用者直接获取 | ||
this.register({ | ||
namespace: "@@saga-model-prefix", | ||
state: this.prefix(), | ||
reducers: {} | ||
}); | ||
@@ -889,0 +897,0 @@ // get reducers and sagas from model 全局的 sagas |
{ | ||
"name": "redux-saga-model", | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"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
309212
1126