An old Project details save can reset the active project or toast on another project
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 73/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 162
- Fork
- 6
- Merge medio
- 12h 55m
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tsiger/widgetizer
-
question
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
tsiger/widgetizer#194 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tsiger/widgetizer#181 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
tsiger/widgetizer#175 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tsiger/widgetizer#174 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tsiger/widgetizer#173 ·
Tutte le issue di tsiger/widgetizer
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Query Log shows "Upstream" for CNAME cloaking, schedule, NXDOMAIN hijack and response IP blocksApertabug good first issue query-log web
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
ferrous-networking/ferrous-dns#326 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Ylianst/MeshCentral#8294 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
yunaremaia/jsonl-cli#1 · 1 commento ·