Skip to content

StrictMode warnings from SizeAwareComponent #18

@dariusstephen

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!

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