Is there a way to check which `Composable` is need...
# compose
a
Is there a way to check which
Composable
is needlessly being recomposed? I want to see if a
Text
is recomposed for example.
s
SideEffect
runs on every recomposition, you can add a log statement in there and have it in the composition scope that you want to check
🙌 1
j
Oh nice trick, @Stylianos Gakis thanks
👍 1
c
Why even bother putting a log in a sideEffect? Just put it in the composable?
s
The log would potentially happen more than necessary, in case of for example a dropped recomposition. It's probably most of the time not gonna matter but I'd say it's "more correct" to do it inside a SideEffect
today i learned 1