
implementation("androidx.compose.runtime:runtime-saveable:1.10.0-alpha03")Enables saving and restoring local UI state within Compose applications. Introduces the `retain` API, similar to `rememberSaveable`, for persisting values exiting the composition hierarchy. Values retained are not serialized and have shorter lifespans than saved ones, behaving similarly to `ViewModel`.