preactjs / preactjs/preact-devtools

Add true support for Portals in devtools

Open
#51 0 comments 1 reaction 0 assignees View on GitHub

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:

portal

What it should look like instead:

portal-react

Contributor guide

No contributing guide indexed for this repository

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.