val backStackEntry = navHostController.currentBackStackEntryAsState()
and then accessing
Copy code
backStackEntry.value
causes constant recomposition
j
Javier
10/28/2020, 1:20 PM
I think it is normal, for example if you want to use the same toolbar for the entire app, you can observe this state to update it according (title, etc).
d
dagomni
10/28/2020, 1:22 PM
No, I mean like 10 (or even more) recompositions per second constantly, even though nothing's changed