//reactivestate-compose/com.ensody.reactivestate.compose/afterUpdate
afterUpdate¶
[common]\
fun <T> MutableState<T>.afterUpdate(setter: MutableState<T>.(T) -> Unit): MutableState<T>
Returns a new MutableState that calls setter after doing the actual value update.
The value is set automatically for you before setter has been called. For more control use withSetter. This can be used to wrap a State/MutableState with extra update logic.