Skip to content

Need some tip for dealing with Compose recomposition  #580

@b95505017

Description

@b95505017

Component is a pure interface. Which makes Compose think it is unstable when put it as parameter.

Another issue is calling component function from lambda (e.g. onClick = { component.handleId(id) }. I found that I need do some extra remember wrapper, or it can't skip recomposition when state changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions