
implementation("androidx.lifecycle:lifecycle-viewmodel:2.11.0-alpha02")Manages UI-related data in a lifecycle-conscious way, ensuring data survives configuration changes. Recent updates introduce APIs for creating scoped ViewModelStore instances in Compose, allowing ViewModels to be tied to specific UI scopes like individual Pager pages or LazyList items. These ViewModels persist through configuration changes and are automatically cleared when their corresponding Composable is permanently removed from the hierarchy.