-
-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Named qualifier does not work with view models #1500
Comments
interesting 🤔 |
Named qualifiers also do not work when using constructor DSL like documented here: https://insert-koin.io/docs/reference/koin-core/dsl-update#dsl-options
Maybe the cause is related maybe not. Let me know if i should create a separate ticket for this. |
yes, here there is confusion with 2 functions |
Thanks @arnaudgiuliani. This was the issue. |
i need to find a solution to avoid confusion with the 2 |
Will be release in koin-android 3.3.3 |
Describe the bug
It seems to be the same as #452
When providing ViewModels using
viewModel
withnamed
in module and injecting usingby viewModel
the same instances are injected regardless of names.To Reproduce
Use the following module:
And the injection:
Logcat output:
Expected behavior
Logcat output:
Koin project used and used version (please complete the following information):
io.insert-koin:koin-android:3.3.2
Additional moduleDefinition
N/A
Reproducer project: /~https://github.com/DroidsOnRoids/KoinQualifier
Additional log:
The text was updated successfully, but these errors were encountered: