Skip to content

[Property-grid]: add dispose to element label loading - #1818

Merged
MartynasStrazdas merged 2 commits into
masterfrom
mast/property-grid-add-dispose-to-element-label-loading
Oct 1, 2026
Merged

MartynasStrazdas merged 2 commits into
masterfrom
mast/property-grid-add-dispose-to-element-label-loading

Conversation

@MartynasStrazdas

Copy link
Copy Markdown
Contributor

No description provided.

@MartynasStrazdas
MartynasStrazdas marked this pull request as ready for review October 1, 2026 07:36
@MartynasStrazdas
MartynasStrazdas requested review from a team as code owners October 1, 2026 07:36
Copilot AI balanced review requested due to automatic review settings October 1, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The cancellation guard correctly addresses the race condition and is covered by a focused regression test.

Review effort: Balanced
Findings: None

What changed in this PR

Prevents stale asynchronous label loads from overwriting current element-list data.

Changes:

  • Discards results after effect cleanup.
  • Preserves telemetry cleanup behavior.
  • Adds regression coverage and a patch changeset.
File Description
ElementList.tsx Ignores outdated label results.
ElementList.test.tsx Tests overlapping label requests.
Changeset Documents the patch.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MartynasStrazdas
MartynasStrazdas merged commit df9a465 into master Oct 1, 2026
24 checks passed
@MartynasStrazdas
MartynasStrazdas deleted the mast/property-grid-add-dispose-to-element-label-loading branch October 1, 2026 08:14
@imodeljs-admin imodeljs-admin mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

property-grid: ElementList loads labels for every selected element, one request at a time, even while hidden

3 participants