---
title: "invalidateLayer"
description: "This will invalidate the current node's layer, and ensure that the layer is redrawn for the next
frame."
type: "function"
---

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


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


```kotlin
fun LayoutModifierNode.invalidateLayer() = requireCoordinator(Nodes.Layout).invalidateLayer()
```


This will invalidate the current node's layer, and ensure that the layer is redrawn for the next
frame.



