question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find components inside Portals

See original GitHub issue

We at the Neos CMS render some components inside an iframe portal (with unstable_renderSubtreeIntoContainer).

Of course, current react selectors are not able to find it as it’s detached from the main rendering tree.

What would be the way to go to test such stuff? Custom helper to find the dom node inside an iframe and get react instance of it via __reactInternalSomething... property? Any chance to support such usecase in this package, as it might be a pretty common usecase to test portals (e.g. modals).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:28 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
kirovboriscommented, Aug 24, 2017

I’m working on fix this issue. If I understood it correctly, NodeTypeGroupPanel is a PureComponent. I need check out the ReactSelector for such cases.

0reactions
kirovboriscommented, Aug 30, 2017

Check out your twitter DM please.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Portals - React
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component. ReactDOM.createPortal(child, ......
Read more >
Understanding React Portals and Its Use-Cases
React Portal is a first-class way to render child components into a DOM node outside of the parent DOM hierarchy defined by the...
Read more >
Transporting your Components Anywhere with React Portals
Portals in React give us a useful way to transport DOM elements anywhere in your code. In this tutorial, let's look at how...
Read more >
Tutorial: How to use code components in portals - Power Apps
Tutorial: Use code components in portals · Step 1. Create your first component · Step 2. Add the code component to a field...
Read more >
Inject dynamic content in Angular components with portals
We have a few options to create a portal. ComponentPortal : create a portal from a component type. ... With DomPortal , the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found