---
title: "valueChange"
description: "Creates an Action that updates the value of a MutableRemoteState to a new RemoteState."
type: "function"
lastmod: "2026-06-18T10:32:53.070259Z"
---
## API Reference

### valueChange

> Source set: Android

```kotlin
public fun <T> valueChange(
    remoteState: MutableRemoteState<T>,
    updatedValue: RemoteState<T>,
): Action
```

Creates an [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) that updates the value of a [MutableRemoteState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/MutableRemoteState) to a new [RemoteState](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/RemoteState).

#### Parameters

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

#### Returns

| | |
| --- | --- |
|  | An [Action](/jetpack-compose/androidx.compose.remote/remote-creation-compose/interfaces/Action) representing the value change. |
