retained
retained copied to clipboard
[ACTIVE] A lightweight alternative to Android's ViewModels. The easiest way to retain instances in Activities, Fragments or Composables.
Version [2.5.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#version_25_2) of Lifecycle introduces a new `CreationExtras` parameter which would allow us to provide better support for `SavedStateHandle` on Compose. What does that mean to Retained? In addition to...
First interation for built-in compose support. Usage looks like the following: ```kotlin @Composable fun MyComposable() { val vm = retain { ViewModel() } } class ViewModel(val name: String = "")...
https://sfconservancy.org/news/2020/jun/23/gitbranchname/
Retained has been stable for a long period of time, so we do not foresee any major API change. We already have GitHub Actions to ensure the quality of any...
* Update Kotlin to 1.9.22 * Update Compose to 1.6.0 * Update other libraries * Update Retained vesion to 1.0.3
### Use case Creating a responsive application with Compose Multiplatform (Desktop, Android, ...) in which all screens can be in `common` code can force the consumer of this library to...