Incorrect range when changing lanes
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend, performance
研究方向
從連結的最小可重現 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
- Start scrolling and the range gets updated correctly
- Toggle lanes (lanes change from 5 to 10) and the range changes to 0-9999
- Update in package.json @tanstack/react-virtual to 3.13.2
- 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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/virtual 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
TanStack/virtual#1290 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 38/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 55/100
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
callstackincubator/rozenite#518 ·
維護者通常 1 天內回覆
-
Area/Workflow Priority/Blocker Type/Bug
難度 2/5 1-3 小時 新手友好度 76/100
wso2/product-integrator#2622 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
-
area:bash bug has repro platform:macos
難度 2/5 1-3 小時 新手友好度 78/100
anthropics/claude-code#98644 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
allure-framework/allure-js#1603 ·
維護者通常 1 天內回覆