Skip to content

Replace all List<T> & Map<T, R> to ImmutableList<T> & ImmutableMap<T, R> for all Compose parameters. #89

@racka98

Description

@racka98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High PriorityenhancementNew feature or requestinvestigatingBug is under investigation to get more details

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions