Hello, I used koin to inject my view model in a co...
# koin
h
Hello, I used koin to inject my view model in a compose screen like so:
Copy code
@Composable
fun AlarmRoute(
    onAlarmFinished: () -> Unit,
    modifier: Modifier = Modifier,
    viewModel: AlarmViewModel = koinViewModel(),
)
Now I tried to apply deep link using jetpack navigation to this
AlarmRoute
and every time I trigger that deep link, my view model will recreated, even if it is currently displayed. Is this expected behavior?
a
did you try the `koinNavViewModel()`function?