Conan
The class Conan contains the following methods:
light<DATA>
light is the method we use to create a simple Conan State without passing reducers and actions
Input Params | |
name | Type: the name we want to use for this state |
initialData | Type: the initial data we want to have when the state is created |
nature | Type: FlowEventNature TBC: Que mierdas es esto Alberto? |
Returns | |
ConanState | The newly created state |
state<DATA, REDUCERS extends Reducers<DATA> = {}, ACTIONS = any>
state is the method we use to create a Conan State when we need to add extra reducers and or actions
Params | |
data | Type: the StateDef object that contains our custom actions and reducers |
Return type | |
ConanState | The newly created state |
Last updated