Dispose Rooster editor initialized after unmount
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start at the useInitRooster hook and follow its initRoosterEditor promise together with the unmount cleanup and isMounted guard. Verify the lifecycle behavior for initialization completing after unmount: the newly created editor is disposed and onReady is not called.
Written by the indexing model from the issue text.
Description
useInitRooster awaits initRoosterEditor(). If the component unmounts before initialization finishes, cleanup runs while editorRef is still unset.
When initialization later resolves, the isMounted() guard returns without disposing the newly created editor.
The editor should be disposed when initialization finishes after unmount, and onReady should not be called.
- Dominant language
- TypeScript
- Stars
- 5.6k
- Forks
- 715
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ProtonMail/WebClients
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ProtonMail/WebClients#539 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ProtonMail/WebClients#537 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ProtonMail/WebClients#524 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ProtonMail/WebClients#541 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ProtonMail/WebClients#532 · 1 comment ·
All issues in ProtonMail/WebClients
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·