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
Is your feature request related to a problem? Please describe.
In my code base, some of constructors use optional (nullable) parameters, which are not resolved correctly when I use the Constructor DSL like:
classFizzClass(valinitialValue:Int?)
val someModule = module {
factoryOf(::FizzClass)
}
The FizzClass is sometimes inject with a non-null value, but sometimes with null and to make that work I need to go with the classic DSL like:
Is your feature request related to a problem? Please describe.
In my code base, some of constructors use optional (nullable) parameters, which are not resolved correctly when I use the Constructor DSL like:
The
FizzClass
is sometimes inject with a non-null value, but sometimes with null and to make that work I need to go with the classic DSL like:Describe the solution you'd like
It would be great to be able to use the Constructor DSL also with nullable injected params.
Describe alternatives you've considered
The only alternative I can see for now is the go with much more verbose classic Koin DSL.
Target Koin project
Koin-Core
The text was updated successfully, but these errors were encountered: