Skip to content

Warning: findDOMNode is deprecated in StrictMode #193

Open
@bintangyoga

Description

@bintangyoga

findDOMNode was passed an instance of VisibilitySensor which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

Fyi, I use this version :
"next": "^13.1.1",
"react-visibility-sensor": "^5.1.1",

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