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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StrictMode warnings from SizeAwareComponent #18

Open
dariusstephen opened this issue Mar 22, 2022 · 0 comments
Open

StrictMode warnings from SizeAwareComponent #18

dariusstephen opened this issue Mar 22, 2022 · 0 comments

Comments

@dariusstephen
Copy link

dariusstephen commented Mar 22, 2022

Thank you for the awesome library.

Everything works however I received two errors from React StrictMode for the deprecated findDOMNode.

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

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of GridItem which is inside StrictMode.

I believe both of them are originating from SizeAwareComponent file.

FYI, I am not using react-sizeme to handle responsive as that package is also giving StrictMode warning as well. Instead, I am using react-resize-detector to detect width.

Any pointer is appreciated. Thanks!

@dariusstephen dariusstephen changed the title StrictMode warnings StrictMode warnings from SizeAwareComponent Mar 22, 2022
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