Denis
01/10/2021, 7:55 AMval vm: MyViewModel = viewModel()
always retrieve the same ViewModel object in different composables but in the same activity?Halil Ozercan
01/10/2021, 8:35 AMDenis
01/10/2021, 1:21 PMNavigation Compose also takes advantage of this behaviour to make sure that viewmodels are tied to navigation destinations, rather than activity or fragments.Ah, that's what tricked me! Thanks a lot, Halil!