Skip to content

ComposeViewFactory isn't currently compatible with saved instance state #295

Open
@zach-klippenstein

Description

@zach-klippenstein

AndroidComposeView requires its parent view to have an ID to support saved state registry, but we have the same problem that it does – they're creating dynamically, and we can't guarantee a unique ID across process restarts. Not sure how to solve this, this ticket is for exploring possible solutions.

One idea might be to require bindCompose composedViewFactory to take an @IdRes Int.

Some related Compose links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions