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
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of PopoverDetectOutside which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
("PopoverDetectOutside" is the component wrapped using react-click-outside)
Looking at the implementation, would it be possible to assign the ref as the result of a createRef, calling the wrappedRef callback during componentDidMount using this.ref.current?
react-click-outside
's use offindDOMNode
triggers a warning when used withReact.StrictMode
.https://reactjs.org/docs/strict-mode.html
("PopoverDetectOutside" is the component wrapped using
react-click-outside
)Specific issue:
https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage
Looking at the implementation, would it be possible to assign the ref as the result of a
createRef
, calling thewrappedRef
callback duringcomponentDidMount
usingthis.ref.current
?https://reactjs.org/docs/refs-and-the-dom.html
The text was updated successfully, but these errors were encountered: