You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm rendering the frame component inside a portal (actually 2 iframes inside 2 different portals), and sometimes I get an error and the component unmounts:
Uncaught Invariant Violation: unmountComponentAtNode(...): Target container is not a DOM element.
react-dom.development.js:506 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
in Reactiifyer (created by App)
in App
The unmount error occurs because I do heavy calculations in the iframe and unmount the iframe component when mouse leaves the window. Here's the error in action https://gfycat.com/fancywastefuljoey (not really sure how to upload vid directly 😕)
While working in codesandbox I noticed the same error when hot reloading occurred in some cases.
Hi, I'm rendering the frame component inside a portal (actually 2 iframes inside 2 different portals), and sometimes I get an error and the component unmounts:
Uncaught Invariant Violation: unmountComponentAtNode(...): Target container is not a DOM element.
package.json
:Not really sure what's the cause of the error.
The text was updated successfully, but these errors were encountered: