You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I tried to update my project from version 3.2.0 to 3.2.2.
After migrate to the new android scope from the previous lazy delegate to the new createFragmentScope() All my calls to by koinNavGraphViewModel is crashing with the error
Trying to access Android Scope on 'HomeFragment{c1f0992} (aeee074c-3115-41a1-b87f-84b9bfb93494)' but scope is not created
my code is
private val viewModel: HomeViewModel by koinNavGraphViewModel(R.id.navGraph)
And if I change to
private val viewModel: HomeViewModel by viewModel()
the code do not crash anymore
Other places that I use just by viewModel(), continue to work fine
To Reproduce
Steps to reproduce the behavior:
Create an fragment with the new android scope implementation (createFragmentScope())
Inject an viewModel using by koinNavGraphViewModel
Expected behavior
scope to be inicialized when koinNavGraphViewModel is used
Koin project used and used version (please complete the following information): Before: koin-android:3.2.0 koin-androidx-workmanager:3.2.0 koin-androidx-navigation:3.2.0 koin-android-compat:3.2.0
Describe the bug
I tried to update my project from version 3.2.0 to 3.2.2.
After migrate to the new android scope from the previous lazy delegate to the new
createFragmentScope()
All my calls toby koinNavGraphViewModel
is crashing with the errormy code is
And if I change to
the code do not crash anymore
Other places that I use just
by viewModel()
, continue to work fineTo Reproduce
Steps to reproduce the behavior:
createFragmentScope()
)by koinNavGraphViewModel
Expected behavior
scope to be inicialized when
koinNavGraphViewModel
is usedKoin project used and used version (please complete the following information):
Before:
koin-android:3.2.0
koin-androidx-workmanager:3.2.0
koin-androidx-navigation:3.2.0
koin-android-compat:3.2.0
After:
koin-android:3.2.2
koin-androidx-workmanager:3.2.2
koin-androidx-navigation:3.2.2
koin-android-compat:3.2.2
The text was updated successfully, but these errors were encountered: