Skip to content

Tracking: First-class controlled-selection API #345

Description

@TrevorBurnham

Summary

Consolidating the recurring requests for a properly controlled selection model. Today selection is effectively uncontrolled: syncing it from outside (via setSelection/selectMulti + onSelect) is fragile and prone to feedback loops, and onSelect fires on programmatic changes too.

Desired outcome

  • A controlled selection prop (e.g. a selected/selection map) that is the single source of truth.
  • onSelect reports user-driven changes only, not changes the consumer caused.
  • No infinite loops when mirroring selection into external state.

Rolls up

Closing the above against this issue once an API lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions