An old Project details save can reset the active project or toast on another project
Chưa có ai nhận issue này.
Đá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
- 73/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
Hướng nghiên cứu
Start in app/src/pages/ProjectsEdit.jsx and packages/editor-ui/src/stores/projectStore.js, tracing how a save updates the active project and displays toasts after the page unmounts. Add a test that leaves p1 for p2 while p1's save is pending. Done when the old save cannot reactivate p1 or show an unscoped toast on p2's page.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
If you save Project details and switch to another project's details within a second, the old save can make the first project active again (sending you back to the Projects list) or show its messages on the new page.
ProjectsEdit.jsx starts a fresh page per project (key={id}), so a load, save or Apply Update still running for a project the user has left only touches its own, unmounted page. Two writes still reach outside it. A save's follow-up getActiveProject() → setActiveProject(...) (the folder-rename and the plain branch of handleSubmit) writes the shared project store: save p1, activate p2 and open its details before that request returns, and p1 becomes active again, so p2's page redirects to the Projects list. And toasts from the old page (a failed load, a save or update finishing) still show on the new one. Needs the user to leave, activate another project and reopen details within the save's round trip. Pre-existing; found by Codex reviewing the update-banner refresh, 2026-10-19; not reproduced.
Done when: a save whose page has unmounted no longer writes the active project (a mounted ref, or a store write that checks the active id is still the saved project's), and its toasts are skipped or name the project, with a test that moves to p2 while a p1 save is pending.
Start: ProjectsEdit.jsx, projectStore.js.
- Ngôn ngữ chính
- JavaScript
- Star
- 162
- Fork
- 6
- Merge trung bình
- 12 giờ 55 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 tsiger/widgetizer
-
question
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
tsiger/widgetizer#194 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
tsiger/widgetizer#181 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
tsiger/widgetizer#175 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
tsiger/widgetizer#174 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tsiger/widgetizer#173 ·
Tất cả issue của tsiger/widgetizer
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 12 ngày
-
[Bug]: Payment providers removed from config are never disabled in payment_providerCó thể đã có người làm @medusa-os-bot đã nhận hôm nay. Đang mởtype: bug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
medusajs/medusa#17544 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cli good first issue priority:medium type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PicadoLabs/build-with-ai#199 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Cookies with valid Max-Age are omitted when Expires is in the pastCó thể đã có người làm @Max-Reisinger đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sagemathinc/sagebrush#252 ·
Maintainer thường phản hồi trong vòng 1 ngày