javivelasco / javivelasco/react-tunnels

Redirect react context

Open
#10 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
395
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently the tunneled component reads the context of where it is rendered at. It would be useful to redirect the context the same way it is done with props.

If you don't have time to do it, do you think it would be possible?

What about using react portals to render children into DOM nodes rendered and registered by other react components previously? React portals do redirect context. Do you see any potential problem with that?

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 examining how the tunneled component currently reads its rendering context and how props are redirected. Compare that behavior with React portals and their context handling, including the proposed DOM nodes registered by other React components. Done means the tunneled component can use the redirected context without breaking its existing rendering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.