I am using Firebase Remote Config and I have creat...
# koin
r
I am using Firebase Remote Config and I have created a Wrapper class for use throughout my app, injected via Koin. The Firebase Remote Config singleton requires some initial setup before it can be used. Currently I do this in my Application subclass just before I start Koin, but I was wondering if there was a better way? Can Koin be told to instantiate a class immediately rather than on first use? If so, i can mov the initialization code into init() of the wrapper class.
a
you can define your dependency like
Copy code
single(createdAtStart = true) {
    ...
}
r
thank you! Just what i needed
👍 1