I\'m trying to create a single activity app using android architecture components. I have a fragment A which has some textfields, when user pushes a button I navigate to fra
You need create ViewModels scoped to a Navigation Graph.
Check this nice guide and you can keep your navigation component. Its very easy to implement and works for me!!
https://medium.com/sprinthub/a-step-by-step-guide-on-how-to-use-nav-graph-scoped-viewmodels-cf82de4545ed