Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

React.StrictMode throws warning because of findDOMNode use #1222

Open
@kodai3

Description

@kodai3

Is your feature request related to a problem? Please describe 🙏

react-domfindDOMNode 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 isreleased 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp