Kindly make your question clearer. Possibly share some code.
But from what I understand from your question, Recomposition
is not a bad thing, but to reduce it there are some things you have to understand.
List
is mutable and it will cause recompositions, so use Lazy
versions of containers to efficiently handle changes.These are what I know from top of my head from what I understand from your question. But read Official Documentation and this Article