preactjs / preactjs/preact-devtools
Add true support for Portals in devtools
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 345
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
We currently display Portals like standard class components. We don't have special handling for the newly rendered sub tree which is why it renders it as if it would be a new root tree. See this screenshot:

What it should look like instead:

Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the current Portals display in the devtools and compare it with the two screenshots in the issue. Trace how the newly rendered subtree is classified and rendered, then verify that it appears as part of the portal rather than as a new root tree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100