8000 fix: remove the use of findDOMNode by onurio · Pull Request #471 · krakenjs/zoid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: remove the use of findDOMNode #471

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

onurio
Copy link
@onurio onurio commented May 7, 2025

This PR aims to remove the use of findDOMNode and by this allowing zoid to be used with React 19 (fixed #396)

React minimum version is now 16.3

https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-reactdom-finddomnode

8000

@onurio onurio requested a review from a team as a code owner May 7, 2025 20:48
- Replace ReactDOM.findDOMNode with React.createRef() for React 16.3+ compatibility
- Add fallback to callback refs for older React versions
- Make implementation backward compatible to support all React versions
- Update flow types to fix typechecking errors
- Keep minimal findDOMNode fallback only for test environment
@onurio onurio changed the title fix: remove deprecated use of findDOMNode fix: backwards compatible deprecation of findDOMNode May 7, 2025
@onurio onurio changed the title fix: backwards compatible deprecation of findDOMNode fix: remove the use of findDOMNode May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

findDOMNode is deprecated in StrictMode
1 participant
0