jsiddhesh96
12/04/2024, 5:41 AMColumn
-- Column
-- Text ( static )
-- Button ( onClick of this )
-- Text ( value change onClick of above button )
I am listening to drawWithContent of all composables above
Question : During onClick of button, recomposition happens for the 2nd text whose value changes
• But drawWithContent gets called for all composables mentioned above
I wanted to understand why does drawWithContent of all composables get called when only the 2nd text is expected to recompose and redraw?Stylianos Gakis
12/04/2024, 9:15 AMjsiddhesh96
12/04/2024, 10:58 AMColumn ( re-renders )
-- Column ( does not re-render )
-- Text ( re-renders )
-- Button ( re-renders )
-- Text ( re-renders )
re-render here means -> drawWithContent was triggered for that composable
Any idea on why the inner column's drawWithContent is not called?Stylianos Gakis
12/04/2024, 12:14 PMjsiddhesh96
12/04/2024, 1:01 PMAhmed
12/05/2024, 5:44 AM