---
title: "NonRestartableComposable"
description: "This annotation can be applied to [Composable] functions in order to prevent code from being
generated which allow this function's execution to be skipped or restarted. This may be desirable
for small functions which just directly call another composable function and have very little
machinery in them directly, and are unlikely to be invalidated themselves."
type: "class"
---

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


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

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


```kotlin
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER)
public annotation class NonRestartableComposable
```


This annotation can be applied to `Composable` functions in order to prevent code from being
generated which allow this function's execution to be skipped or restarted. This may be desirable
for small functions which just directly call another composable function and have very little
machinery in them directly, and are unlikely to be invalidated themselves.



