Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incorrect range when changing lanes

オープン
#1,012 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript

調査の方向性

リンクされている最小限の再現可能な CodeSandbox から始め、useVirtualizer の lanes を 5 から 10 に変更してから、バージョン 3.13.2 と 3.13.9 の動作を比較し、コミット 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時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。