Not working with React 18 and StrictMode
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start by reproducing the issue with React 18 and StrictMode, then trace the library's component constructor initialization and componentWillUnmount cleanup while mount operations are in progress. Done means the react-vtk-js components complete their mount and cleanup lifecycle correctly under React 18 StrictMode without losing initialized data.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We are trying to upgrade to React 18 but this library doesn't seem to work with it when combined with StrictMode.
The problem resides in the way the data is initialized into the constructor calls and then deleted on componentWillUnmount. StrictMode forces the components render twice, and most of the react-vtk-js logic doesn't seem to handle this (it never expects the component to unmount while some of the mount operations are still running).
Do you think you could prioritize the work needed to support React 18 + StrictMode?
- Ngôn ngữ chính
- TypeScript
- Star
- 86
- Fork
- 24
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Kitware/react-vtk-js
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Kitware/react-vtk-js#130 · 2 bình luận ·
-
Is this package maintained?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Kitware/react-vtk-js#123 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Kitware/react-vtk-js#122 · 1 bình luận ·
-
[Bug Docs] ObjViewer Load Error!Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Kitware/react-vtk-js#119 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Kitware/react-vtk-js#118 · 1 bình luận ·
Tất cả issue của Kitware/react-vtk-js
Issue tương tự
-
area: desktop area: website priority: P2 type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
appandflow/stim#3411 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rjsf-team/react-jsonschema-form#5485 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
lingdojo/kana-dojo#32090 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Friction: Org home and org switcher copy still say repositories and connected agents live in the personal accountCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfriction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kentcdodds/kody#3265 ·
Maintainer thường phản hồi trong vòng 1 ngày