# StateDef

the class StateDef holds the definition of a state, that can be passed to [Conan.state](https://docs.conanjs.io/api/main-classes/conan)

| Params           |                                                                                                                                                                                                                         |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name             | <p><strong>Type:</strong>  <code>string </code><em><code>required</code></em></p><p>the name we want to use for this state</p>                                                                                          |
| initialData      | <p><strong>Type:</strong>  <code>AsapLike\<DATA> </code><em><code>required</code></em> </p><p> the initial data we want to have when the state is created</p>                                                           |
| reducers         | <p><strong>Type:</strong>  <code>ReducersFn\<DATA, REDUCERS> </code><em><code>optional</code></em></p><p>the reducers that will act on this state</p>                                                                   |
| actions          | <p><strong>Type:</strong>  <code>ActionsFn\<DATA, REDUCERS, IPartial\<ACTIONS>> </code><em><code>optional</code></em></p><p>the actions that will act on this state</p>                                                 |
| autoBind         | <p><strong>Type:</strong>  <code>any </code><em><code>optional</code></em></p><p>any object with logic we want to auto bind with this state</p>                                                                         |
| pipelineListener | <p><strong>Type:</strong>  <code>IConsumer\<FlowEvent> </code><em><code>optional</code></em></p><p><strong>TBC: Que mierdas es esto Alberto?</strong></p>                                                               |
| cancelAutoStart  | <p><strong>Type:</strong>  <code>boolean </code><em><code>optional</code></em></p><p>true if we want to cancel the auto start of the state</p>                                                                          |
| reactions        | <p><strong>Type:</strong>  <code>RUserReactionsDef<{ nextData: DATA }, 'nextData', { nextData: ACTIONS & REDUCERS }> </code><em><code>optional</code></em></p><p><strong>TBC: Que mierdas es esto Alberto?</strong></p> |
| nature           | <p><strong>Type:</strong>  <code>FlowEventNature </code><em><code>optional</code></em></p><p><strong>TBC: Que mierdas es esto Alberto?</strong></p>                                                                     |

|   |   |
| - | - |
|   |   |
