When passed to a Dispatcher this function will be invoked so state can be updated.
A tuple, the first element is an object of type T. The optional second element indicates if the state has changed; if not provided it defaults to false.
T
The type of the state parameter and first element in the return tuple.
When passed to a Dispatcher this function will be invoked so state can be updated.
Returns
A tuple, the first element is an object of type
T
. The optional second element indicates if the state has changed; if not provided it defaults to false.