Jan 24, 2021
You're correct, as of now, there's no out-of-the-box component/scope in Dagger.Hilt, that would enable sharing instance from parent fragment to its children only. ViewModelComponent here definitely doesn't help, because it is only relevant when resolving dependency graph for a single view model instance.
So it's only useful if two dependencies of a viewmodel depend on some object and they need to share the same instance.