Hey I have a doubt specific to recomposition cycle...
# compose-android
j
Hey I have a doubt specific to recomposition cycle I have a button that updates a counter which is displayed in the Text on the same screen Thus , onClick of button triggers recomposition of the Text I am listening to drawWithContent from modifier for recomposition rendering Whenever I click on the button, Layout inspector tells me that recomposition has occurred, but I don't get the callback in drawWithContent Ideally it should right? since the text is changing to a different number so re-drawing should have happened I wanted to understand the reason behind the same. Any idea on this?
Add-on to this • I tried changing background colour on every counter update ◦ This is giving me callback in drawContent But without the above background color change, The text display was anyway changing , why does it not trigger "drawWithContent" in those cases?
j
Didn't get any reply here, so posted on a wider channel there^
s
Ye, I did this so that if someone answers on one thread, then whoever sees the other thread will know if it was already answered on the other place. So people don't double answer this by accident.
thank you color 1