I need to access a singleton from an inline functi...
# koin
t
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?
I think its possible using
KoinPlatformTools.defaultContext().get()
… but not sure if thats the best way possible?
a
yes, this is the default way. in Jvm only you can do
GlobalContext.get()
👍 1
🙏 1