the State type.
Optional
onchange?: ((state: S) => any)Function that gets called when the state changes. This function should return a value from the
state. Only when that value changes will the service's run
function be called.
Function that gets called when the value returned by the onchange
function has changed.
The function should call cell.update(...)
to update the state.
Generated using TypeDoc
A service gets called when the state changes and when the value returned by the
onchange
function has changed.