Join Slack
Powered by
I need to access a singleton from an inline functi...
# koin
t
tim
02/08/2022, 2:27 PM
I need to access a singleton from an inline function … any suggestions? eg how do I access a
single { something}
value outside of a KoinComponent?
tim
02/08/2022, 2:28 PM
I think its possible using
KoinPlatformTools.defaultContext().get()
… but not sure if thats the best way possible?
a
arnaud.giuliani
02/08/2022, 3:26 PM
yes, this is the default way. in Jvm only you can do
GlobalContext.get()
👍 1
🙏 1
6
Views
Open in Slack
Previous
Next