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

valueChange

Creates an Action that updates the value of a MutableRemoteState to a new RemoteState.

valueChange

Source set: Android
public fun <T> valueChange(
    remoteState: MutableRemoteState<T>,
    updatedValue: RemoteState<T>,
): Action

Creates an Action that updates the value of a MutableRemoteState to a new RemoteState.

Parameters

remoteState The mutable remote state to be updated.
updatedValue The new remote state value to apply.

Returns

An Action representing the value change.

Last updated: