Skip to content

StrictMode warnings from SizeAwareComponent #18

Description

@dariusstephen

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions