call abstract method
T
call(
- T state
This method is called when the action is dispatched and is responsible for updating the state based on the action's payload.
Takes a parameter of type T
(which represents the current state)
and returns a value of type T
(which represents the new state after
the action has been applied).
Implementation
T call(T state);