hi everyone, getting nativepollonce anr (and it's ...
# koin
v
hi everyone, getting nativepollonce anr (and it's main thing that exceeds bad behaviour threshold) because of startKoin in Application onCreate (onCreate triggers everytime application receives push etc...). Which ways do we have to reduce workload in onCreate from startKoin(it takes a lot of time to init)? I'm considering moving modules initialization to MainActivity+PushService or marking modules as lazy
p
In general those things work, either make most of your injections lazy, initialize the koin in a different thread. Or use the new startup api
a
yep. Startup API still have has some glitches, but you can look at lazy modules perhaps
Lazy Modules are stale since 4.0