Join Slack
Powered by
Is it possible to scope other than ViewModel to sp...
# dagger
p
Peter
11/22/2023, 8:05 PM
Is it possible to scope other than ViewModel to specific navgraph? Like some custom object, e.g. Repository.
h
Hristijan
11/22/2023, 11:54 PM
if you directly inject the dependency inside the let’s say Repository, it lives as long as the Repository does
p
Peter
11/23/2023, 7:58 PM
Sometimes you want same class instance across multiple screens, but not across the whole application.
2
Views
Open in Slack
Previous
Next