Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

withCurrent

Provides a block with the current record, without notifying any read observers.

withCurrent

Source set: Common
public inline fun <T : StateRecord, R> T.withCurrent(block: (r: T) -> R): R

Provides a block with the current record, without notifying any read observers.

Last updated: