|
@@ -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 () {}
|
|
|
}
|