Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Incorrect range when changing lanes

未關閉
#1,012 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
react, typescript

研究方向

從連結的最小可重現 CodeSandbox 開始,將 useVirtualizer 的 lanes 從 5 改為 10,接著比較 3.13.2 與 3.13.9 版本之間的行為,並檢查 commit 02ef3097de4a14ed4077ace2ca901dc411bf81c1。完成的標準是,變更 lanes 不再將範圍擴展到 0–9999,且計算出的範圍維持正確。

由索引模型根據 Issue 內容生成。

描述

Describe the bug

From version 3.13.3 the range calculations changed in this commit.
It now returns the complete range when the lanes in useVirtualizer are changed.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/tankstack-virtual-range-extractor-p6jf47

Steps to reproduce
  1. Start scrolling and the range gets updated correctly
  2. Toggle lanes (lanes change from 5 to 10) and the range changes to 0-9999
  3. Update in package.json @tanstack/react-virtual to 3.13.2
  4. The problem is fixed again.
Expected behavior

Ranges should be correct

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Tested in macOS, Safari and Chrome

tanstack-virtual version

3.13.9

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
主要語言
TypeScript
星號
7.1k
分支
468
平均合併
1 天 2 小時
30 天內合併 PR
12

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TanStack/virtual 的其他 Issue

查看 TanStack/virtual 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。