
implementation("androidx.lifecycle:lifecycle-viewmodel:2.11.0-beta02")Manages UI-related data lifecycle, ensuring data survives configuration changes and is properly cleared when no longer needed. 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.