Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

An old Project details save can reset the active project or toast on another project

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react
Domain
frontend, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

bug

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.

Dominant language
JavaScript
Stars
162
Forks
6
Avg merge
12h 55m
Merged PRs (30d)
2

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tsiger/widgetizer

All issues in tsiger/widgetizer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.