Dheeraj Gupta
05/09/2023, 12:46 AMsingle activity compose app
where 2 ViewModels
are using single composable function
but when the composable is not in use how can I destroy the viewModel instance
I am using https://github.com/raamcosta/compose-destinations
and passing the viewmodel from the destination like this