Colton Idle
02/24/2021, 11:18 PMsetContent in beta01. Search in slack doesn't show anyone with the same problem. Any ideas?Tash
02/24/2021, 11:19 PMandroidx.activity:activity-compose ?Colton Idle
02/24/2021, 11:19 PMTash
02/24/2021, 11:20 PMalpha12 and androidx.activity:activity-compose 1.3.0-alpha02 was the cureTash
02/24/2021, 11:21 PMZach Klippenstein (he/him) [MOD]
02/24/2021, 11:21 PMColton Idle
02/24/2021, 11:22 PMimplementation 'androidx.activity:activity-compose:1.3.0-alpha03' is a "weird" version no? I guess it's not tied to compose and so that's why latest isn't beta01Ian Lake
02/24/2021, 11:27 PM-compose artifacts; they depend on Compose, but are not part of it.Ian Lake
02/24/2021, 11:28 PMsetContent isn't going to change though since that was a holdover from its old location)Colton Idle
02/24/2021, 11:31 PMIan Lake
02/24/2021, 11:33 PMviewModel() also moved out to a separate lifecycle-viewmodel-compose in case you missed that one as well: https://developer.android.com/jetpack/androidx/releases/lifecycle#lifecycle-viewmodel-compose-1.0.0-alpha02Zach Klippenstein (he/him) [MOD]
02/25/2021, 12:12 AMAbstractComposeView doesn’t require a ViewTreeViewModelStoreOwner to be present anymore?Ian Lake
02/25/2021, 12:16 AMLocalViewModelStoreOwner is actually a 'lazily computed' composition local, a pattern used both in lifecycle-viewmodel-compose and activity-compose for optional composition locals: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:lifecycl[…]roidx/lifecycle/viewmodel/compose/LocalViewModelStoreOwner.ktIan Lake
02/25/2021, 12:32 AMNavHost does call LocalViewModelStoreOwner, so that would be the one composable that has a hard dependency on it existing. Technically, NavController is fine without a ViewModelStoreOwner, but the non-null nature of LocalViewModelStoreOwner would mean it would go down the error route as it is currently written. Filed https://issuetracker.google.com/181173757 to support the usage of NavHost without any ViewModelsZach Klippenstein (he/him) [MOD]
02/25/2021, 3:13 PMColton Idle
02/25/2021, 3:17 PMZach Klippenstein (he/him) [MOD]
02/25/2021, 3:19 PMColton Idle
02/25/2021, 3:20 PM