Delegate Reducer<TState>
A function that takes the current state and an action, and returns a new state.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public delegate TState Reducer<TState>(TState state, IAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| TState | state | The current state. |
| IAction | action | The Action to handle |
Returns
| Type | Description |
|---|---|
| TState | The new state. |
Type Parameters
| Name | Description |
|---|---|
| TState | The type of the state. |