InsertKoinIO / koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
https://insert-koin.io
Apache License 2.0
8.98k stars 710 forks source link

Add lazyViewModelForClass to get ViewModel lazily in custom classes #1775

Closed NinoDLC closed 4 months ago

NinoDLC commented 8 months ago

PR for https://github.com/InsertKoinIO/koin/issues/1774.

I would also change the function getLazyViewModelForClass (to resolve the viewModelStore lazily) but this would make a breaking change, which is not the scope of this PR.

NinoDLC commented 4 months ago

It took longer to merge this than for me to leave the team where this code was necessary. Closing.