Skip to content

Refactor virtualization resize observer to track individual forOf elements.#16809

Merged
rkaraivanov merged 43 commits intomasterfrom
mkirova/resize-observer-refactor
Feb 12, 2026
Merged

Refactor virtualization resize observer to track individual forOf elements.#16809
rkaraivanov merged 43 commits intomasterfrom
mkirova/resize-observer-refactor

Conversation

@MayaKirova
Copy link
Contributor

@MayaKirova MayaKirova commented Jan 26, 2026

Closes #16821

Attach observer to individual root node views so that they track any change individually for that view. Update size accordingly.
Cache sizes of embedded views and use the cache when updating virtualization caches on scroll.

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@MayaKirova MayaKirova added squash-merge Merge PR with "Squash and Merge" option version: 21.1.x labels Feb 2, 2026
@MayaKirova MayaKirova added the ❌ status: awaiting-test PRs awaiting manual verification label Feb 2, 2026
@MayaKirova MayaKirova changed the title [POC] Refactor virtualization resize observer to track individual forOf elements. Refactor virtualization resize observer to track individual forOf elements. Feb 2, 2026
Copy link
Member

@rkaraivanov rkaraivanov left a comment

Choose a reason for hiding this comment

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

LGTM
I think we can squeeze out a little bit more perf with several of the points in this review.

rkaraivanov
rkaraivanov previously approved these changes Feb 4, 2026
@rkaraivanov rkaraivanov added 💥 status: in-test PRs currently being tested and removed ❌ status: awaiting-test PRs awaiting manual verification labels Feb 11, 2026
@rkaraivanov rkaraivanov added ✅ status: verified Applies to PRs that have passed manual verification and removed 💥 status: in-test PRs currently being tested labels Feb 12, 2026
@rkaraivanov rkaraivanov merged commit 9f65451 into master Feb 12, 2026
6 checks passed
@rkaraivanov rkaraivanov deleted the mkirova/resize-observer-refactor branch February 12, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: performance squash-merge Merge PR with "Squash and Merge" option version: 21.1.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grid Virtualization - variable row height performance improvements

3 participants