-
Notifications
You must be signed in to change notification settings - Fork 45
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
findDOMNode is deprecated #208
Comments
Depends on import findDOMNode from 'rc-util/lib/Dom/findDOMNode'; .... const getDom = () => |
Is this going to be fixed? This API is being deprecated by the React folks. If there are no plans to address this, it would be nice to know that now, so we can migrate to a different library. |
@kaiyoma Could you provide a codesandbox reproduce? |
@afc163 Just use this library along with React 18.3 and you'll get the browser console warning. The React 19 upgrade guide talks about how https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-reactdom-finddomnode |
Here's your repro. 😆
|
@kaiyoma Give me a codesandbox and let'me provide a workround for you. Or you can find it in https://github.com/ant-design/ant-design/pull/51101/files
|
Here's a repro: https://codesandbox.io/p/sandbox/finddomnode-forked-4cdsl3?workspaceId=1b72be1a-43a5-4335-8231-c6c61fc1819c Though I think it's redundant with what you've already posted. (If the child of |
Hey getting a warning when using the resize-observer,
it's long pending issue and i didn't see any fix?
The text was updated successfully, but these errors were encountered: