Hey guys! I face a problem with creation of eager ...
# koin
m
Hey guys! I face a problem with creation of eager instances by passing createdAtStart as true in a definition. As I noticed it calls only when startKoin invokes. But I also use loadKoinModules method and in that case creation of instances doesn't happen. As a workaround I'm trying to call
Copy code
KoinPlatformTools.defaultContext().get().createEagerInstances()
after call loadKoinModules(). Looks like it works, but I'm not sure for 100%. Is it an expected behavior or it is a bug?
a
yes, it's a real good question. regular question comes around running or not eager instances. A good solution can be to provide a bollean for this, instead of calling it on your own
m
Yeah, I hope u will solve it and usage will be more convenient :)
👍 1