react-onclickoutside
react-onclickoutside copied to clipboard
prevents calling findDOMNode on unmounted instance
react throws error such as this when findDOMNode is used on an unmounted component instance. For me this happens when using react-datetime. When user clicks outside the state of our app is mutated and we rerender the view containing the react-datetime and react-onclickoutside components.
Hm, I'm a little confused as to how an unmounted component could receive updates. What do those updates even do if there's no associated component to show the updates for? (e.g. that sounds like accidentally using a component as if it's a normal JS object instead of being part of a user interface)