Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmounted Component Error. #156

Open
daveferrara1 opened this issue Apr 24, 2019 · 0 comments
Open

Unmounted Component Error. #156

daveferrara1 opened this issue Apr 24, 2019 · 0 comments

Comments

@daveferrara1
Copy link

daveferrara1 commented Apr 24, 2019

We upgraded to:
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-visibility-sensor": "5.0.2",

We load a component that renders the VisibilitySensor component. It's mounted when a button is clicked (its a pop up basically). When it mounts the component logs an error to the console. The visibility change no longer fires. I tried active={false} to see if that would help but it does not.

The console error is:

react-dom.development.js:55 Uncaught Invariant Violation: Unable to find node on an unmounted component.
at invariant (http://local.pac-12.com/profiles/pac12/modules/modules/pac12_react/modules/pac12_react_schedule/dist/schedule.js?pqf8zw:27295:15)
at findHostInstanceWithWarning (http://local.pac-12.com/profiles/pac12/modules/modules/pac12_react/modules/pac12_react_schedule/dist/schedule.js?pqf8zw:47864:9)
at Object.findDOMNode (http://local.pac-12.com/profiles/pac12/modules/modules/pac12_react/modules/pac12_react_schedule/dist/schedule.js?pqf8zw:48378:14)
at VisibilitySensor.componentDidMount (http://local.pac-12.com/profiles/pac12/modules/modules/pac12_react/modules/pac12_react_schedule/dist/schedule.js?pqf8zw:52660:38)
at e.notifyAll (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:12:7904)
at r.close (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:14:18388)
at r.closeAll (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:15:9758)
at r.perform (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:15:9253)
at o.perform (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:15:9170)
at o.perform (http://local.pac-12.com/sites/all/libraries/react-dom/react-dom.min.js?pqf8zw:14:24725)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant