Replace all List<T> & Map<T, R> to ImmutableList<T> & ImmutableMap<T, R> for all Compose parameters. #89
Labels
enhancement
New feature or request
investigating
Bug is under investigation to get more details
P1
High Priority
Describe the bug
List in Compose functions cause the composable to not be skippable. Means that they are re-evaluated every time the parent Composable recomposes. This can affect performance. Performance for screens that uses lists heavily like Tasks, Statistics and Goals can be affect when the lists change every time.
To Reproduce
No Applicable
Expected behavior
All Compose related models and parameters with List or Map<T, R> should be replaced with ImmutableList & ImmutableMap<T, R> respectively.
Additional context
All Composables that receive List or Map<T, R> do not pass lint checks and detekt with Twitter Compose Rules
The text was updated successfully, but these errors were encountered: