Does the Koin support scoping a `ViewModel` to a D...
# koin
j
Does the Koin support scoping a
ViewModel
to a Dialog? I would like to extra scanning logic to a dialog and have it automatically cancel any pending jobs (
flow
collection) once the dialog is dismissed. Currently I'm remembering my viewmodel when my dialog is displayed and manually calling a "dismissed" function that cancels my pending job. It would be nice if there exist some facility in Koin that would allow me to scope my viewmodel to a Dialog and handle canceling the
viewModelScope
once it is removed.