---
title: "SnapshotMutableState"
description: "A mutable value holder where reads to the [value] property during the execution of a [Composable]
function, the current [RecomposeScope] will be subscribed to changes of that value. When the
[value] property is written to and changed, a recomposition of any subscribed [RecomposeScope]s
will be scheduled. Writes to it are transacted as part of the [Snapshot] system.

In general for correctness: Anything that is mutable, that is read during composition or written
to during composition, should be a [SnapshotMutableState]."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
public interface SnapshotMutableState<T> : MutableState<T>
```


A mutable value holder where reads to the `value` property during the execution of a `Composable`
function, the current `RecomposeScope` will be subscribed to changes of that value. When the
`value` property is written to and changed, a recomposition of any subscribed `RecomposeScope`s
will be scheduled. Writes to it are transacted as part of the `Snapshot` system.

In general for correctness: Anything that is mutable, that is read during composition or written
to during composition, should be a `SnapshotMutableState`.



