react-onclickoutside icon indicating copy to clipboard operation
react-onclickoutside copied to clipboard

prevents calling findDOMNode on unmounted instance

Open capaj opened this issue 6 years ago • 1 comments

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.

capaj avatar Feb 19 '19 16:02 capaj

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)

Pomax avatar Feb 19 '19 17:02 Pomax