type of the internal state
Update the internal state using the provided callback.
Note: If the callback returns the same instance of the state (i.e. returns the prev
argument)
the implementations are safe to assume that no update happened and can act so (e.g. skip any notification or post-processing).
Generated using TypeDoc
An object whose internal state can be updated.