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?
bartek.t
10/10/2025, 1:24 PM
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
arnaud.giuliani
10/13/2025, 7:00 AM
Your scope is here tied to your Composable, not sure this is what you intend to do