Join Slack
Is it possible to scope other than ViewModel to specific navgraph? Like some custom object, e.g. Rep...
# 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.
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by