浏览代码

minimal change to module

Tomi Cvetic 7 年之前
父节点
当前提交
6160462929
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/module/module.js

+ 7 - 1
src/module/module.js

@@ -13,7 +13,7 @@ class Module {
     if (!this.actionCreators) {
       this.actionCreators = {}
     }
-    ['start', 'success', 'failure'].forEach(state => {
+    ['init', 'success', 'failure'].forEach(state => {
       const actionType = `${this.name}_${name}_${state}`.toUpperCase()
       const actionCreatorName = `${this.name}${name[0].toUpperCase() + name.substring(1)}${state[0].toUpperCase() + state.substring(1)}`
       this.actionCreators[actionCreatorName] = args => {
@@ -25,4 +25,10 @@ class Module {
       const reducerLogic = action => {}
     })
   }
+
+  /**  */
+  addDatabaseState () {}
+
+  /**  */
+  addLocalstorageState () {}
 }