# NonRestartableComposable

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/NonRestartableComposable.kt+class:androidx.compose.runtime.NonRestartableComposable) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @Retention(value = AnnotationRetention.SOURCE)
  @Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER])
  annotation NonRestartableComposable
  ```

*** ** * ** ***

This annotation can be applied to `https://developer.android.com/reference/kotlin/androidx/compose/runtime/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.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/NonRestartableComposable#NonRestartableComposable()()` | Cmn |

## Public constructors

### NonRestartableComposable

Cmn

```
NonRestartableComposable()
```