Beyond the Screen: Component-Level ViewModels in Compose

Until Lifecycle 2.11, ViewModelStore scoping was tied to navigation destinations, activities, or fragments. There was no clean way to scope a ViewModel to an arbitrary part of your UI. The Lifecycle 2.11 alphas close that gap with two new APIs that let you scope ViewModels to UI sections smaller than a screen: rememberViewModelStoreOwner() scopes a ViewModel to the call site of a composable...