In terms of scoping with Koin, after starting Koin...
# koin
c
In terms of scoping with Koin, after starting Koin in application.onCreate, does it make sense in trying to achieve scoped dependencies by loading(onCreate)/unloading(onDestroy) new modules on the fly in Activities/Fragments. For example, in Activity A, I would load/unload modules (A1,A2) and in FragmentB and FragmentC (that would be presented in Activity A) I would load/unload modules (B1,B2 for FragmentB) as well as (C1,C2 for FragmentC). My understanding is that all definitions in A1/A2 would be available and shared between A,B and C(meaning a single { } would be the same between A,B,C). Is that correct?
@arnaud.giuliani any insight on the above? Is my understanding correct?
a
scoped
definitions are acting like
single
. Scope are more group of instances that you can drop easily. ViewModel is clearly more power-full and easier to use in that case