Is there a way to provide a dependency after makin...
# dagger
m
Is there a way to provide a dependency after making a network call or operation which can be injected anywhere and is scoped to the application?
j
Well, you can create some Observable/Flow that will emit the results of an operation... It just need to be a singleton inside a given scope..
b
You can do whatever you want inside a
@Provides
function. Just do the call and block the thread until you get the value. Or instead of inject the value you can inject a provider of that value.