A state and data store.
Methods
createComState(name, fn)
Description:
Create a state object in the store.
Returns
Object
The created state object.
Parameters:
| Name | Type | Description |
|---|---|---|
| name |
|
The name of the state object to create. |
| fn |
|
The initialization function containing actions etc... |
createDataState(name, fn)
Description:
Create a data object in the store.
Returns
Object
The created data object.
Parameters:
| Name | Type | Description |
|---|---|---|
| name |
|
The name of the data object to create. |
| fn |
|
The initialization function containing actions etc... |