https://kotlinlang.org logo
#koin
Title
# koin
a

Ankit Kumar

11/06/2023, 6:00 PM
Hello everyone, Why we need to unload koin modules, given that it do not remove anything from memory it's just Koin no longer knows how to create certain dependency or is there other benefits?
a

arnaud.giuliani

11/08/2023, 8:53 AM
unloading modules is only required if you intend to reload those modules. Else yes, everything will be garbaged at the end of your app process
a

Ankit Kumar

11/09/2023, 11:12 AM
but why would I unload, if I want to reload it like will there be any differences when we reload next time, as per my understanding it will be same
a

arnaud.giuliani

11/09/2023, 2:37 PM
reload => mean drop and load, then you drop your singletons
a

arnaud.giuliani

11/10/2023, 1:30 PM
modules have the widest scope over existing scopes
it let you drop everything
😯 1
2 Views