Class ReducerSwitchBuilder<TState>
The Reducer Switch Builder is used to build a reducer switch statement via method chaining. You must have created Action Creators for each action type you want to handle prior to using this.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: solution.dll
Syntax
public class ReducerSwitchBuilder<TState>
Type Parameters
Name | Description |
---|---|
TState | The type of the state slice. |
Methods
Name | Description |
---|---|
AddCase(ActionCreator, CaseReducer<TState>) | Adds a case to the reducer switch statement. |
AddCase<T>(ActionCreator<T>, CaseReducer<T, TState>) | Adds a case to the reducer switch statement. |
AddDefaultCase(CaseReducer<TState>) | Adds a default case to the reducer switch statement. A default case is a case that will be executed if no other cases match. |
AddDefaultCase<T>(CaseReducer<T, TState>) | Adds a default case to the reducer switch statement. A default case is a case that will be executed if no other cases match. |
AddMatcher(ActionMatcher, CaseReducer<TState>) | Adds a matcher case to the reducer switch statement. A matcher case is a case that will be executed if the action type matches the predicate. |
AddMatcher<T>(ActionMatcher, CaseReducer<T, TState>) | Adds a matcher case to the reducer switch statement. A matcher case is a case that will be executed if the action type matches the predicate. |
BuildReducer(TState) | Builds the reducer switch statement. |