[Table] Multiple renders on Shift+Tab

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

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

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

  • #10283 @coolassassin による — マージされずにクローズ

評価

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

調査の方向性

https://react-aria.adobe.com/Table の Table の例から始め、React DevTools で「Highlight updates」を有効にした状態で Shift+Tab の動作を再現します。その動作を react-spectrum PR #10247 で説明されている修正と比較し、Shift+Tab でセルごとに 1 回レンダーされる、または必要なセルだけがレンダーされ、Tab 操作にリグレッションがないことを確認します。

索引モデルが issue の本文から書いたものです。

説明

Provide a general summary of the issue here

If you Tab into the table, you can see the render in every single cell of the table
If you Tab out of the table, you can see the render in every single cell of the table
But if you press Shift + Tab to leave the table, you will see 4x renders of each cell in the table

Image
🤔 Expected Behavior?

Good: 1 render on any tab action
Excellent: render only the necessary cells, not the whole table

😯 Current Behavior

4x renders when you press Shift + Tab in table

💁 Possible Solution

This is a fix of this bug:
https://github.com/adobe/react-spectrum/pull/10247

🔦 Context

In our project, we have huge dynamic tables (many on one screen), and any additional rendering affects UX

🖥️ Steps to Reproduce

Turn on "Highlight updates" in React Dev Tools on this page:
https://react-aria.adobe.com/Table

Then focus on any cell in the table and then press Shift + Tab. You will see 4x on each table cell

Version

1.19.0 (latest)

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

dxFeed(Devexperts)

🕷 Tracking Issue

No response

主要言語
TypeScript
スター
16k
フォーク
1.6k
平均マージ
4日 3時間
マージ済み PR(30日)
39

環境構築

はじめの一歩

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

adobe/react-spectrum のほかの issue

adobe/react-spectrum の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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