Do I understand RememberObserver correctly? Once I...
# koin
b
Do I understand RememberObserver correctly? Once I create a custom scope related to a navigation route and it’s placed in the back stack, will RememberObserver trigger the disposal of any custom scope created with the KoinScope() function?
It seems so, but it hasn't been closed in version 4.0.4. In 4.1.1, it’s already the case. So, if I create a custom scope related to backstackEntry, then navigate to another route and try to go back, my scope is closed — along with all dependencies that should have persisted during that time.
a
Your scope is here tied to your Composable, not sure this is what you intend to do
b
I try to tie it to the backstack entry instead
👍 1