observeReads

Function

Common
fun <T> T.observeReads(block: () -> Unit) where T : Modifier.Node, T : ObserverModifierNode

Use this function to observe snapshot reads for any target within the specified block. ObserverModifierNode.onObservedReadsChanged is called when any of the observed values within the snapshot change.