Hello everyone!
I'm facing some bad performance since using compose on my Android app. I tried to reduce recompositions. Now i a have questions about this.
Are modifiers costly in recompositions? On every recomposition every action on modifier like padding, background,... are reset and recalled.
Some actions like onSizeChanged are called on every recomposition cause the previous size is reset.
I tried to remember modifier and that reduces useless calls of onSizeChanged.
Is it OK to remember modifiers?