Can I put the result of rememberNavController() into the ViewModel for route persistence?
i
Ian Lake
02/11/2022, 4:12 AM
No, the NavController contains a reference to the activity Context, which cannot ever be put in a ViewModel. NavController already saves and restores the set of routes across config changes, process death and recreation, and every other case