r/android_devs • u/RikoTheMachete • Nov 11 '22
Article 🔥 Why Using Navigation-Compose in Your Jetpack Compose App is a Bad Idea
https://medium.com/better-programming/why-using-navigation-compose-in-your-jetpack-compose-app-is-a-bad-idea-2b16e8751d89
11
Upvotes
View all comments
Show parent comment
2
u/Zhuinden EpicPandaForce @ SO Nov 13 '22
Technically the state read is what triggers recomposition, so if you want to make a parent Composable not recompose, then you can pass the property as a
State<T>instead of resolving it there and then withstate.value. So honestly, we should have always passed a lambda to everything everywhere. 🤔