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