Closed Zayankovsky closed 1 year ago
This happens to me and I'm using ScopeFragment
directly from Koin. :rage4:
follow the issue
Replacing it doesn't close the source scope then. Did you try with koin-android
3.2.2?
Not reproducible with koin-android version 3.3.2
.
Describe the bug Koin crashes with the following stack trace:
To Reproduce Steps to reproduce the behavior:
onViewCreated
is called again andcreateFragmentScope
crashes, because the scope is already created.Expected behavior Koin should not crash if the scope is already created. Another option is to create the scope in
onCreate
instead ofonViewCreated
.Koin project used and used version (please complete the following information):
koin-android version 3.2.1
. This does not happen with 3.2.0.