Is there any good way to debug why things are recomposing? I.e. what fields are causing a recomposition to happen.
☝️ 2
b
Big Chungus
08/25/2021, 8:16 AM
println
in composable function?
m
Magnus Gudmandsen
08/25/2021, 8:17 AM
Use case: I have a quite big Composable (graph) with a drag listener causing selection to one of the graph entries when swiping on the view. When this happens, I want to recompose just the selection marker (think: a dot drawn on top of the graph), but currently the whole graph is recomposed, which is causing a not so smooth experience.
To my best of my knowledge, I have separated the different data needed for each part, so for example the graph axes shouldn’t need to recompose when a new selection happens.
Magnus Gudmandsen
08/25/2021, 8:17 AM
@Big Chungus This unfortunately only shows me when a recomposition happens, not why