Hey I have a doubt specific to recomposition cycle...
# compose
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?