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.
Fix for cyclic dependencies, you should be able to use Lazy<T> in constructors, but you'll get: No definition found for type 'kotlin.Lazy'.
Is your feature request related to a problem? Please describe.
Fix for cyclic dependencies, you should be able to use
Lazy<T>
in constructors, but you'll get:No definition found for type 'kotlin.Lazy'
.Lazy is common use in other DI frame works
Describe the solution you'd like
This is possible manually already, but would be nice of koin supported it via it's singleOf/factoryOf
Currently this will fail as Koin will not resolve the Lazy<*> type.
Describe alternatives you've considered
You can work around this limitation doing:
You could define a Provider or koin.Lazy type if you wanted to leave the Kotlin one alone.
Target Koin project
koin-core
The text was updated successfully, but these errors were encountered: