---
title: "observeReads"
description: "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."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.



