Hey, any suggestions on this will be great: I hav...
# compose
s
Hey, any suggestions on this will be great: I have few composable functions, precisely 3 defined in navigation compose root composable. Each of them have their separate view models respectively. I want to have a common service layer eg m that should be shared among just these 3 view models. I am trying to use hilt and have an activity scoped dependency service. But even I inject that to view model. They get seperate instances. I don't want the service dependency to be singleton scoped. Is there anything I am missing or any solutions for this use case will be very helpful. Thanks
a
can you share the code for the module with the annotation
Easy way is a common viewModel with that dependency
s
yea