Find components inside Portals
See original GitHub issueWe 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:
- Created 6 years ago
- Comments:28 (17 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m working on fix this issue. If I understood it correctly,
NodeTypeGroupPanel
is aPureComponent
. I need check out theReactSelector
for such cases.Check out your twitter DM please.