Skip to content

(prototype) Table windowing: a scroll band on both axes - #11197

Draft
humbertovirtudes wants to merge 9 commits into
feat/table-columns-virtualization-rowsfrom
proto/table-scroll-band
Draft

humbertovirtudes wants to merge 9 commits into
feat/table-columns-virtualization-rowsfrom
proto/table-scroll-band

Conversation

@humbertovirtudes

@humbertovirtudes humbertovirtudes commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Measurement prototype, not for merge. It compares a scroll band with the current fixed overscan, on both windowing axes, with numbers. The base (feat/table-columns-virtualization-rows) is being rebased and landed separately; this branch stays on the head it was measured against.

Commits (each measurable on its own)

  1. A scroll band on both axes. The shared windowing module plans a band of CSS pixels past each viewport edge instead of a fixed overscan count, and each window hook reads the one shared geometry source through a memoized, per-axis banded snapshot. It keeps the snapshot it last planned from until that axis's scroll offset moves at least half a band, or something else the plan reads changes. useSyncExternalStore skips the render for an identical snapshot, so a scroll inside the band commits nothing, and a scroll on one axis never re-runs the other axis's plan.
  2. Hold content revisions in the banded snapshot. A probe in the snapshot reader on the 2,000-row story showed that at 120px per frame, 149 of 151 snapshot changes were the content revision that the window's own row mounts publish, not the scroll. The banded snapshot now holds the content revision; size, start offset, extent, measured state, layout revision and a pending anchor write still pass through. Validation of newly mounted rows keys on the committed mounted range (plan.start/plan.end), so it still runs in the layout effect of the commit that mounts them.
  3. Switchable private band sizes. One private constant per axis (a pixel limit and a viewport fraction), for measurement builds. Not public API. Defaults: block min(512px, H), inline min(256px, W/2), W being the width between the pinned runs.
  4. Fix: a column range change renders only the cells that enter. Separate from the band; it applies to the column windowing stack as is. While columns window, a row re-rendered every mounted cell on each column range change, because the row takes the new column segments. Each row now keeps the element it built for each mounted column, valid for the item, row context, plugins, columns, text overflow, row height and cell component it was built from. React skips an identical element, so only entering cells render, and a leaving column drops its element.
  5. Harness counts cell renders, takes a pattern subset per variant and rotates the run order.

No velocity lead: it needs time-based state and its own commits, which is not cheap in a snapshot reader.

Deterministic tests

virtualization/scrollBand.test.tsx (fake shared geometry source, React Profiler, 2,000px of scrolling):

Case Bound Before commit 2 After
Block, 10px steps, P = 512 ≤ ceil(2000/256)+1 = 9 pass pass
Inline, 10px steps, P = 256 ≤ ceil(2000/128)+1 = 17 pass pass
Diagonal, 10px steps ≤ one per band move on either axis (25) pass pass
One axis only, on the other axis's hook 0 pass pass
Block, 120px steps, a content revision after each mount ≤ 9 fail (10) pass
Diagonal, 120px steps, with mount revisions ≤ 25 pass pass
Viewport, start offset, layout revision pass through; a content revision alone is held 3 commits fail (4) pass

useTableColumnsVirtualization.test.tsx, "renders only the cells of columns that enter the window" (Profiler plus per-column read counts, 20 rows): before commit 4, all 11 mounted columns rendered on a 300px scroll; after, only the 3 entering columns render, once per row.

Full suite on commit 4: vitest --project ui packages/core/src/virtualization packages/core/src/Table packages/core/src/utils 110 files, 2046 tests pass; pnpm typecheck passes; prettier and eslint clean on changed files.

Measurements

Built Storybook, headless Chromium, one machine. Stories ran one at a time; variants in rotated order; medians of 5 runs; blank frames and cell renders from a separate pass. Cell renders count body cells whose props changed in a commit (a skipped cell keeps its props object). Stories: rows = 2,000 rows (320px viewport); columns = 300 columns, all 200 rows mounted; both = 10,000 × 302 (480px viewport). Patterns: (a) vertical 20px/frame × 300, (b) fast vertical 120px/frame × 150, (c) horizontal 20px/frame × 300, (d) diagonal 20/20 × 300, (e) jump to the middle and back × 10.

Variants: B0 stack top (no band) · B1 commit 1 (block min(512,H), inline min(256,W/2)) · V1 B1 + commit 2 · V2 V1 with block min(256,H/2) · V3 V1 with block min(128,H/4) · V4 V2 with inline min(128,W/4) · C0 B0 + commit 4 · V6 V2 + commit 4. Patterns a and b only scroll vertically, so the column band and the cell fix (V4, C0, V6) were measured on c and d instead.

Rows (2,000 rows)

Pat CPU Variant Commits Cell renders Script ms Frame p95/max > 16.7 ms Mutations Rows mean Blank
a 1× B0 592 801 277 17/17 0 1461 15 0
a 1× B1 159 359 113 17/17 0 951 18 0
a 1× V1 110 284 101 17/17 0 901 18 0
a 1× V2 223 363 149 17/17 0 1219 12 0
a 1× V3 364 510 214 17/17 0 1482 9.5 0
a 4× B0 592 801 947 17/17 0 1461 15 0
a 4× B1 159 359 374 17/17 0 951 18 0
a 4× V1 110 284 321 17/17 0 901 18 0
a 4× V2 223 363 492 17/17 0 1219 12 0
a 4× V3 364 510 709 17/17 0 1482 9.5 0
b 1× B0 449 942 229 17/17 0 3101 15 0
b 1× B1 447 942 232 17/17 0 3093 18 0
b 1× V1 225 793 155 17/17 0 2505 18 0
b 1× V2 447 942 228 17/17 0 3107 12 0
b 1× V3 448 941 224 17/17 0 3114 9.5 108
b 4× B0 449 942 772 17/17 0 3101 15 0
b 4× V1 225 793 527 17/17 0 2505 18 0
b 4× V2 447 942 757 17/17 0 3107 12 0
b 4× V3 448 941 745 17/17 0 3114 9.5 108
e 1× V2 / V3 58 / 58 450 / 350 51 / 46 17/17 0 / 0 1380 / 1080 10 / 8 20 / 20
e 4× V2 / V3 58 / 58 450 / 350 188 / 169 33 / 17 1 / 0 1380 / 1080 10 / 8 20 / 20

Columns (300 columns, 200 rows mounted)

Pat CPU Variant Commits Cell renders Script ms Frame p95/max > 16.7 ms Mutations Cells mean Blank
c 1× B0 399 119,800 4960 133/167 54 39999 2388 0
c 1× C0 (cell fix only) 399 10,000 1993 83/100 70 39999 2388 0
c 1× V2 125 103,400 4022 150/150 52 36180 2451 0
c 1× V3 125 103,400 4019 150/166 52 36180 2451 0
c 1× V4 (inline min(128,W/4)) 174 153,000 5599 117/133 84 39999 2059 0
c 1× V6 (band + cell fix) 125 9,800 1575 83/100 61 36180 2451 0
e 1× V2 / V3 54 / 54 39,600 / 39,600 2410 / 2356 300 / 300 19 / 19 83214 2180 19 / 19
e 4× V2 / V3 54 / 54 39,600 / 39,600 10405 / 10174 1333 / 1667 20 / 20 83214 2180 19 / 19

| c | 4× | B0 | 398 | 119,800 | 20779 | 650/717 | 300 | | | |
| c | 4× | C0 | 398 | 10,000 | 8809 | 400/500 | 300 | | | |
| c | 4× | V2 / V3 | 125 / 125 | 103,400 | 16938 / 17056 | 667/767 | 300 | | | |
| c | 4× | V4 | 174 | 153,000 | 24021 | 533/600 | 300 | | | |
| c | 4× | V6 | 125 | 9,800 | 6961 | 417/517 | 300 | | | |

Rows and columns (10,000 × 302)

Pat CPU Variant Commits Cell renders Script ms Layout ms Style ms Frame p95/max > 16.7 ms Mutations Rows / cells mean Blank
a 1× B0 593 1775 891 111 93 17/17 0 3568 17 / 194 0
a 1× B1 126 1275 320 39 48 17/17 0 2842 26 / 291 0
a 1× V1 75 1225 254 31 41 17/17 0 2842 26 / 289 0
a 1× V2 150 1275 337 45 58 17/17 0 3107 18 / 200 0
a 1× V3 299 1374 504 71 89 17/17 0 3529 14 / 154 0
a 4× B0 593 1775 3516 462 393 33/50 119 3568 17 / 194 0
a 4× B1 126 1275 1270 161 205 67/83 22 2842 26 / 291 0
a 4× V1 75 1225 964 129 171 50/67 24 2842 26 / 289 0
a 4× V2 150 1275 1254 178 233 33/50 49 3107 18 / 200 0
a 4× V3 299 1374 1818 269 348 33/33 18 3529 14 / 154 0
b 1× B0 449 3842 808 119 161 17/17 0 9484 18 / 195 0
b 1× B1 447 3828 855 131 157 17/17 0 9407 27 / 294 0
b 1× V1 225 3679 612 88 120 17/17 0 8819 27 / 294 0
b 1× V2 447 3829 802 121 162 17/17 0 9471 18 / 201 0
b 1× V3 448 3830 780 113 161 17/17 0 9501 14 / 154 0
b 4× B0 449 3842 3295 479 659 50/67 149 9484 18 / 195 0
b 4× B1 447 3828 3699 575 676 50/67 148 9407 27 / 294 0
b 4× V1 225 3679 2498 362 500 50/83 78 8819 27 / 294 0
b 4× V2 447 3829 3323 482 665 50/67 149 9471 18 / 201 0
b 4× V3 448 3830 3104 440 653 50/67 147 9501 14 / 154 0
c 1× B0 445 15,000 1005 91 32 17/17 0 2587 12 / 151 0
c 1× V2 125 6958 429 57 27 17/17 0 2534 13 / 165 0
c 1× V3 125 5894 392 50 24 17/17 0 2172 11 / 140 0
c 1× V4 175 10,332 611 72 32 17/17 0 2800 13 / 139 0
c 1× V6 125 679 234 56 27 17/17 0 2534 13 / 165 0
c 4× B0 445 15,000 4208 401 141 50/67 105 2587 12 / 151 0
c 4× V2 125 6958 1871 258 121 50/67 43 2534 13 / 165 0
c 4× V3 125 5894 1583 217 105 50/50 45 2172 11 / 140 0
c 4× V4 175 10,332 2475 313 134 33/50 75 2800 13 / 139 0
c 4× V6 125 679 914 241 116 33/33 36 2534 13 / 165 0
d 1× B0 615 22,924 1502 189 110 17/17 0 7683 17 / 220 0
d 1× V2 238 10,870 734 105 80 17/17 0 7040 18 / 229 0
d 1× V3 353 8774 739 107 93 17/17 0 6706 14 / 176 0
d 1× V4 272 15,022 883 116 78 17/17 0 6900 18 / 193 0
d 1× V6 238 2389 479 103 79 17/17 0 7040 18 / 229 0
d 4× B0 615 22,924 6143 755 452 67/100 124 7683 17 / 220 0
d 4× V2 238 10,870 3024 437 334 83/100 63 7040 18 / 229 0
d 4× V3 353 8774 2933 438 380 67/83 43 6706 14 / 176 0
d 4× V4 272 15,022 3583 480 321 50/67 79 6900 18 / 193 0
d 4× V6 238 2389 1921 437 334 50/67 67 7040 18 / 229 0
e 1× V2 / V3 58 / 58 3800 / 3060 344 / 283 39 / 32 79 / 64 33 / 33 12 / 6 9760 / 7960 16 / 12 20 / 20
e 4× V2 / V3 58 / 58 3800 / 3060 1431 / 1193 163 / 132 326 / 268 200 / 167 19 / 19 9760 / 7960 16 / 12 20 / 20

A jump always leaves the very next frame uncovered, before the scroll reaches React, in every build.

Findings

  • Commit 2 fixes fast scrolling. At 120px per frame, commits halve (449 → 225) and script time drops 30–35% on both row stories; frames over 16.7 ms at 4× halve on 10,000 × 302 (149 → 78).
  • The block band must be larger than twice the per-frame scroll distance. With republishing at P/2, a band whose half is under the frame's scroll distance re-plans every frame: V2 (P = 160px here) and V3 (P = 80px) gain nothing at 120px per frame, and V3 leaves 108 blank frames on the 2,000-row story. Smaller block bands also cost more commits at normal speed (110 → 223 → 364). They do give smaller worst frames under 4× throttling (p95 50 → 33 ms on 10,000 × 302), because each band move mounts fewer rows.
  • A smaller inline band is worse. min(128,W/4) (V4) raises commits, cell renders and script time on every column pattern.
  • The column cell fix is the largest single win, and independent of the band. Cell renders per horizontal run drop from 119,800 to 10,000 on the 300-column story (script 4960 → 1993 ms), and from 15,000 to 679 on 10,000 × 302. With the band (V6), script time drops 4.3× horizontally and 3.1× diagonally against the baseline, and at 4× the horizontal p95/max frame drops to 33/33 ms.

Recommended configuration

  • Block: P = min(512px, viewport height), republish at P/2, holding content revisions.
  • Inline: P = min(256px, half the width between the pinned runs), republish at P/2.
  • Plus the column cell-render fix, which belongs with column windowing regardless of the band.

These are the defaults on this branch, so no further default change was committed. The 10,000 × 302 diagonal and horizontal patterns with the 512px block band and the cell fix together were not measured as one build: the inline cost is the same as V6 there, and the block cost follows V1.

Contract wording this would change

Rows (module:Table/useTableRowsVirtualization):

  • FR2: "Mounted data is one contiguous visible window that extends past each viewport edge by a block band of min(512, viewport height) CSS pixels, plus at most one discontiguous focused product row. The island is never duplicated inside the window. Empty data mounts no data, spacer or island row."
  • PR1: "With unobscured body viewport V and band P = min(512, V), mounted product rows are at most ceil((V + 2P)/rowHeight) + 1 + 1; the final one is the optional island. SSR rows are bounded by FR10's seed. There are at most three nonzero gaps; cells and element work scale with mounted rows and columns, never total data length."
  • PR3: "A scroll that moves less than half a band from the last planned position, or that moves only the inline axis, commits nothing and invokes zero product renderers; a content invalidation from the window's own mounts does not re-plan. A changed mounted item updates one row. Parent identity and order-map validation may be O(N) on changed data or identity but never per scroll."

Columns (module:Table/useTableColumnsVirtualization):

  • FR2: "Pinned start and end runs always mount. In the windowed run, mounted columns are one contiguous range that extends past each edge of the unpinned viewport by an inline band of min(256, half the unpinned viewport width) CSS pixels, plus at most one discontiguous focused column. With no unpinned column, column windowing changes nothing."
  • PR1: "With unpinned inline viewport W, band P = min(256, W/2) and the narrowest windowed column width w, mounted windowed columns are at most ceil((W + 2P)/w) + 1 + 1; the last is the optional focused column. Cells scale with mounted rows times mounted columns, never with the total column count."
  • PR2: "A scroll that moves less than half a band from the last planned position, or that moves only the block axis, invokes zero product renderers. A range change mounts and unmounts only the columns that enter or leave, and renders only the cells of entering columns."

FR6 and FR10 (the seeds) do not change.

Correctness

No regressions found. Focus retention, anchoring, header/body alignment, full-table positions and coverage hold in the unit suite and in the column, focus and rows-plus-columns Chromium specs. Six existing Chromium assertions of the old structural row bound fail by design with any band larger than four rows (listed in the first iteration). The only new blank frames come from the rejected min(128, H/4) block band at 120px per frame.

Testing

Command Result
New scrollBand.test.tsx cases before and after commit 2 2 fail before, all pass after
New cell-render test before and after commit 4 fails before (11 columns render), passes after (3)
vitest run --project ui packages/core/src/virtualization packages/core/src/Table packages/core/src/utils on commit 4 110 files, 2046 tests pass
(cd packages/core && pnpm typecheck) pass
prettier --check and eslint --max-warnings=0 on changed files pass
node scripts/bench/table-scroll-band.mjs with 8 builds, stories one at a time, 5 runs, 1× and 4× the tables above

Scope

Components: Table windowing (shared module), prototype only.

  • Not for merge: a measurement prototype. Commit 4 is the one change intended to move onto the column windowing work.
  • Public text and artifacts contain no internal context.

New module:Table/useTableColumnsVirtualization: an opaque capability
from initialViewportWidth windows the columns between the pinned start
and end runs, using the widths Table layout gives each column at its
minimum width, with two overscan columns per side, one retained focused
column, native spacer cells, full-table aria-colindex/aria-colcount and
a combination with row windowing. component:Table FR18 lets
Table.virtualization take one capability or a list of at most one per
axis.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
Table.virtualization accepts a columns capability, alone or in a list with
at most one rows capability. Table mounts only the unpinned columns near the
inline viewport, plus two overscan columns per side, and keeps the pinned
start and end runs mounted. Each column's pitch is the width it renders at
the table's minimum width. The header row and every body row render the same
inaccessible spacer cells for unmounted columns. While columns window, the
table carries aria-colcount and mounted cells carry full-table aria-colindex.
The server and first client use the same seed from initialViewportWidth.
Inline geometry comes from the shared Table viewport measurement.

Unsupported content or structure renders every column with a development
warning. With both capabilities, this slice windows the rows and renders
every column. The retained focused column, the first-visible-column anchor
and windowing both axes together come in later slices.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
…the first visible column

A focused cell whose column leaves the window stays mounted with its
original element. Focus leaving the table releases it, focus moving to
another cell transfers it, and removing the column returns focus to the
Table's scroll area. The header row and every body row render up to three
spacers: before the range, between the range and the focused column, and
after both.

Changes to column order, widths, visibility and pinning keep the first
visible column's key and fractional offset. A removed anchor resolves to the
next surviving column, then the previous one, then the start. The planner
reuses the row windowing focus-return and anchor helpers; the anchor helper
gains per-item offsets for columns of varying width.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
A Table.virtualization list with a rows and a columns capability now windows
both axes. The fallback that rendered every column beside row windowing is
gone. Each row gap spans the mounted column structure: pinned cells,
spacers and mounted cells. A focused cell keeps its row island and its
column. Both axes read the one shared viewport subscription.

The rows module's mounted-row checks read cells by full-table column
position, so pitch, overflow and row-number width checks skip column
spacers. A row-number column that windows out keeps its last measured
width. The sized columns are memoised, so the column pitches keep their
identity across renders when row numbers widen.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
A measurement prototype, not for merge.

The shared windowing module plans a band past each viewport edge instead
of a fixed overscan count: on the block axis min(512px, viewport height),
on the inline axis min(256px, half the width between the pinned runs).
Each window hook reads the one shared geometry source through a banded
snapshot reader. It keeps the snapshot it last planned from until that
axis's scroll offset moves half a band, or the viewport size, start
offset, measured state or revision changes, or an anchor scroll write is
pending. React skips a render for an identical snapshot, so a scroll
inside the band commits nothing, and a scroll on one axis does not re-run
the other axis's plan.

Adds deterministic commit-count tests and a Chromium measurement harness.
Tests that asserted the four-row or two-column overscan now assert the
band.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 11, 2026 10:40am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 11, 2026
@astracat-bot

astracat-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 11, 2026, 11:00 AM UTC

…pshot

A measurement prototype, not for merge.

At 120px per frame the band still committed about three times per frame.
A probe in the banded snapshot reader showed content revisions passing it
through: each band move mounts rows, the shared measurement then publishes
a content revision, and the planner re-planned from the live offset. The
banded snapshot now holds the content revision; size, start offset,
extent, measured state, layout revision and a pending anchor write still
pass through. Validation of newly mounted rows keys on the committed
mounted range, so it still runs in the layout effect of the commit that
mounts them.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
A measurement prototype, not for merge.

Each axis's band is the smaller of a pixel limit and a fraction of the
viewport, held in one private constant per axis so a measurement build
can switch it. The defaults are unchanged.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
While columns window, a row re-rendered every mounted cell whenever the
column range changed, because the row takes the new column segments. Each
row now keeps the element it built for each mounted column, keyed by the
column and valid for the item, row context, plugins, columns, text
overflow, row height and cell component it was built from. React skips an
identical element, so a range change renders only the cells of entering
columns, and a column that leaves drops its element. Tables without column
windowing build their cells as before.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
A measurement prototype, not for merge.

The harness takes a pattern subset per variant, rotates the run order
across any number of variants, and in its coverage pass counts body cells
that rendered: a re-rendered cell gets a new props object, and a skipped
one keeps the object it had.

This diff was generated with AI assistance (Navi).
Tags: ai-generated

@astracat-bot astracat-bot Bot 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.

Outcome: approval waits on an engineering owner's spec decision, and two fixes are needed either way.

This prototype replaces Table windowing's fixed overscan with a pixel band, which intentionally changes module:Table/useTableRowsVirtualization FR2, ORD3, PR1 and DEC-1, while the inline band has no governing record on main yet. Approval needs an engineering owner to update that spec for the change or decline the band; an engineering owner, the author included, records the decision by commenting /approve-spec <full head SHA> on this pull request.

Blocking findings:

  • First-visible anchoring is lost after a scroll shorter than half a band, because a data change anchors from the stale planned snapshot and the pending scroll write is then dropped, so rows or columns inserted or moved before the viewport shift the content (useListWindow.ts:225-257, useInlineListWindow.ts:195-219), which contradicts FR8.
  • The description says first-visible-key anchoring is unchanged and that no correctness regressions were found, but anchoring regresses after short scrolls, so fix it or narrow that claim.

If the band is approved, the Chromium structural-bound specs also need to move to the new PR1 bound.

Automated review (maintainer link)

Comment on lines +174 to +179
// A pending anchor write must see each live offset until it lands.
const isAnchorPending = tracking?.pending !== undefined;
const getBandedSnapshot = useMemo(
() => createBandedBlockSnapshot(geometry, isAnchorPending),
[geometry, isAnchorPending],
);

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.

After a scroll shorter than half a band, getBandedSnapshot still returns the old planned snapshot, so a data change anchors from that stale last.plan (line 225). The pending flag then swaps in a pass-through reader, isAwaitingAnchor sees a different live scrollTop, and the anchor is dropped: one row inserted at the top after a 200px scroll leaves scrollTop at 200 (the base moves it to 240). This contradicts FR8. Derive the anchor's first visible index and offset from the live geometry.getSnapshot() with the previous keys and pitch.

Comment on lines +157 to +163
// A pending anchor write must see each live offset until it lands.
const isAnchorPending = tracking?.pending !== undefined;
const insets = insetStart + insetEnd;
const getBandedSnapshot = useMemo(
() => createBandedInlineSnapshot(geometry, insets, isAnchorPending),
[geometry, insets, isAnchorPending],
);

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.

Same anchoring gap on the inline axis: after a scroll under half a band, a column change anchors from the stale planned tracking, and the anchor is then dropped. In the ColumnWindowingFocus story, "Move the first column to the end" after a 100px scroll past the last band move leaves scrollLeft at 2100 and the view jumps 160px (the base moves to 1940 and keeps the same column in place).

@astracat-bot astracat-bot Bot 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.

Outcome: approval waits on an engineering owner's spec decision, and three fixes are needed either way.

This prototype intentionally changes module:Table/useTableRowsVirtualization FR2, ORD3, PR1 and DEC-1 (four overscan rows per side) and adds an inline band that no record on main governs yet, so approval needs an engineering owner to update that spec and provide or identify the spec for the inline band, or to decline the band. An engineering owner, the author included, records the decision by commenting /approve-spec <full head SHA> on this pull request.

Blocking findings:

  • While columns window, the new cell cache in BaseTable.tsx (lines 373-414) reuses cells across a pin change, because useTableStickyColumns keeps one plugin object and reads its keys from a ref, so a newly pinned column's header sticks while its body cells scroll away (and an unpinned column's cells stay pinned); key the cache on the resolved pinned runs and add a pin and unpin regression test.
  • First-visible anchoring is still lost after a scroll shorter than half a band, because a data change anchors from the stale planned snapshot and the pending scroll write is then dropped (useListWindow.ts lines 233-262, useInlineListWindow.ts lines 202-224), which contradicts FR8.
  • The description says anchoring is unchanged, that no correctness regressions were found and that content revisions pass the band at once, but the head regresses anchoring and pinned cells and now holds content revisions, so fix the defects or update those claims.

If the band is approved, the Chromium structural-bound specs also need to move to the new PR1 bound.

Automated review (maintainer link)

Comment on lines +373 to +387
const cellCache = useMemo(
() => ({
// The inputs the cached cells were built from.
inputs: [
item,
context,
plugins,
columns,
textOverflow,
rowHeight,
CellComponent,
],
cells: new Map<TableColumn<T>, ReactElement>(),
}),
[item, context, plugins, columns, textOverflow, rowHeight, CellComponent],

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.

These inputs miss plugin state that is read through a ref. useTableStickyColumns keeps one plugin object and reads its pinned keys from stateRef, so pinning or unpinning a column that stays mounted reuses the old cells: the header cell pins while its body cells keep scrolling, or an unpinned column's body cells keep their sticky inset. The base re-rendered every cell on the range change that follows a pin change. Key the cache on the pinned runs resolved at line 874 (or reuse cells only when the column range alone changed), drop the unused inputs field, and add a pin and unpin regression test.

@humbertovirtudes
humbertovirtudes force-pushed the feat/table-columns-virtualization-rows branch 13 times, most recently from 70479a3 to 929ad50 Compare November 13, 2026 04:58
@github-actions
github-actions Bot deleted the branch feat/table-columns-virtualization-rows November 13, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 4bfdc430 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant