How to use custom navGraphViewModels with custom factory that accepts a parameter?
Standard chat style app. Single-activity app with two fragments—one for the list of groups, another with a fragment to show the messages in the group. The two fragments are part of a nested nav graph so I can use navigation graph scope for my view models.
The ViewModel for the messages view needs the id of the messaging group so it can hit the API correctly. When the user taps one of the recycler view items on the message group list I attempt to create this ViewModel so the next fragment in...