It would be nice if navigation had an API that provided the currentBackStackEntry every time the destination changed.
Giving direct access to the backStackEntry would mean simplified interaction with components made available by the NavBackStackEntry like ViewModels, Lifecycles, SavedHandles, etc.
Description
It would be nice if navigation had an API that provided the currentBackStackEntry every time the destination changed.
Giving direct access to the backStackEntry would mean simplified interaction with components made available by the NavBackStackEntry like ViewModels, Lifecycles, SavedHandles, etc.