Browse Source

minimal change to module

Tomi Cvetic 7 years ago
parent
commit
6160462929
1 changed files with 7 additions and 1 deletions
  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 () {}
 }