https://kotlinlang.org logo
#koin
Title
# koin
m

mohamed rejeb

03/18/2024, 6:05 AM
I'm having an issue with voyager and koin on configuration change. When I switch from dark mode to light mode, after navigating to any screen I get this error:
Copy code
org.koin.core.error.ClosedScopeException: Scope '_root_' is closed
It fails getting the voyager StateScreenModel I'm starting and stopping koin correctly and I'not using koin-compose.
s

segunfamisa

03/18/2024, 9:32 PM
I have never used voyager but I encountered this error once when we were clearing the scope in
onDestroy()
of the activity instead of the
onScopeClose()
callback - https://insert-koin.io/docs/reference/koin-android/scope/#androidscopecomponent-and-scope-closing-handling are you using the same?
8 Views