Skip to content

feat: update minPageSize default from 100 to 50#66

Merged
arv merged 2 commits into
mainfrom
arv/min-page-size-default
Jul 14, 2026
Merged

feat: update minPageSize default from 100 to 50#66
arv merged 2 commits into
mainfrom
arv/min-page-size-default

Conversation

@arv

@arv arv commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 13, 2026 15:34
@arv arv enabled auto-merge July 13, 2026 15:34

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.

Pull request overview

Updates the core virtualizer’s default minPageSize floor to reduce the minimum query limit, aiming to decrease DOM/render work for tall-row UIs while keeping paging behavior consistent.

Changes:

  • Lowered the core default MIN_PAGE_SIZE from 100 to 50.
  • Updated unit tests to reflect the new default.
  • Pinned minPageSize: 100 in the DOM harness test to keep existing paging expectations stable.
  • Updated README documentation to reflect the new default.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/solid/create-zero-virtualizer.test.ts Updates Solid wrapper wiring test to accept the new default minimum page size.
src/core/virtualizer.ts Changes the core default MIN_PAGE_SIZE constant from 100 to 50.
src/core/virtualizer.test.ts Updates minPageSize contract tests for the new default value.
src/core/virtualizer.dom.test.ts Pins minPageSize to 100 to preserve existing DOM paging expectations despite the new default.
README.md Updates documentation describing the default minPageSize floor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The scroll-to-bottom test walks the list page by page. With 100-row pages
that was 2 rounds, so each toPass attempt could afford the default 5s
visibility wait. At 50-row pages the walk needs ~7 rounds and the long waits
burn the 20s budget after ~4 — cap the per-attempt wait at 1s so the retry
loop gets enough scroll rounds. Also update the stale 100-row references in
comments and the minPageSize docstring.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@arv arv disabled auto-merge July 14, 2026 12:26
@arv arv added this pull request to the merge queue Jul 14, 2026
Merged via the queue into main with commit 542f83b Jul 14, 2026
9 of 10 checks passed
@arv arv deleted the arv/min-page-size-default branch July 14, 2026 12:29
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.

2 participants