Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.StrictMode throws warning because of findDOMNode use #1222

Open
kodai3 opened this issue Apr 28, 2024 · 0 comments
Open

React.StrictMode throws warning because of findDOMNode use #1222

kodai3 opened this issue Apr 28, 2024 · 0 comments

Comments

@kodai3
Copy link

kodai3 commented Apr 28, 2024

Is your feature request related to a problem? Please describe 馃檹

react-dom findDOMNode is derecated and will be removed in next major version update.
facebook/react#14357
facebook/react#28926

Because of this it throws warning.

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of StyledComponent which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

Now React 19 is released as beta.
This package will block us from upgrading.

Describe the solution you'd like 馃

We have to update the logic without using them.
https://react.dev/reference/react-dom/findDOMNode#finding-the-root-dom-node-of-a-class-component

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

No branches or pull requests

1 participant