UpdateStateAction<St> constructor

UpdateStateAction<St>(
  1. St state
)

When you don't need to use the current state to create the new state, you can use the UpdateStateAction factory.

Example:

var newState = AppState(...);
store.dispatch(UpdateStateAction(newState));

Implementation

factory UpdateStateAction(St state) => UpdateStateAction.withReducer((_) => state);