You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
* @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
* Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
139
+
* @param {Function} fn
140
+
* @return {Function}
141
+
*/
98
142
functionnormalizeNamespace(fn){
99
143
return(namespace,map)=>{
100
144
if(typeofnamespace!=='string'){
@@ -107,6 +151,13 @@ function normalizeNamespace (fn) {
107
151
}
108
152
}
109
153
154
+
/**
155
+
* Search a special module from store by namespace. if module not exist, print error message.
0 commit comments