Rohit Jakhar
07/19/2025, 8:16 PM@Destination<RootGraph>(style = SlideInScreenAnimation::class)
@Composable
fun ProfileScreen(
vm: ProfileVM = hiltViewModel()
)
but after using koin it will be:
@Destination<RootGraph>(style = SlideInScreenAnimation::class)
@Composable
fun ProfileScreen(
vm: ProfileVM = koinViewModel()
)
so Profile viewmodel instance will be auto destroy if i navigate to other screen.
It work with hiltViewModel but i am not sure about koinViewModel
anyone can tell me?
ThanksRafael Costa
07/19/2025, 8:20 PMRohit Jakhar
07/19/2025, 8:31 PMRafael Costa
07/19/2025, 8:31 PMRohit Jakhar
07/19/2025, 9:04 PMorg.koin.androidx.compose
which one should i use?Rafael Costa
07/19/2025, 9:14 PM