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.
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)