[Table] Multiple renders on Shift+Tab

Đang mở
#10,254 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #10283 của @coolassassin — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
react, typescript
Lĩnh vực
frontend, performance

Hướng nghiên cứu

Bắt đầu với ví dụ Table tại https://react-aria.adobe.com/Table và tái hiện hành vi của Shift+Tab khi đã bật «Highlight updates» trong React DevTools. So sánh hành vi này với bản sửa lỗi được mô tả trong react-spectrum PR #10247, sau đó xác minh rằng Shift+Tab tạo ra một lần render cho mỗi ô, hoặc chỉ render các ô cần thiết, mà không gây hồi quy đối với các thao tác Tab.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
16k
Fork
1.6k
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
39

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của adobe/react-spectrum

Tất cả issue của adobe/react-spectrum

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.