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

findDOMNode deprecation warning with newest react 18 version #2199

Open
Xellon opened this issue Aug 21, 2024 · 1 comment
Open

findDOMNode deprecation warning with newest react 18 version #2199

Xellon opened this issue Aug 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Xellon
Copy link

Xellon commented Aug 21, 2024

Describe the bug (current behavior)

With newest React 18 version when certain iTwinUi-react components are used and app is in strict mode, an error is logged into the console: findDOMNode is deprecated in StrictMode.

The error is coming from 'react-transition-group' package that is used in WithCSSTransition component. As I understand according to issue reactjs/react-transition-group#904 this can be fixed on iTwinUI side.

Expected Behavior

No response

Link to minimal repro

No response

Steps To Reproduce

  1. Create an app that is using React 18 and is wrapped in strict mode.
  2. Use one of the affected components, e.g. WithCSSTransition
  3. You should be seeing the error in browser console when affected component is rendered

Anything else?

No response

@Xellon Xellon added the bug Something isn't working label Aug 21, 2024
@mayank99
Copy link
Contributor

@Xellon Thanks for reporting this issue. This is something we're aware of, and we're actually planning to remove the dependency on react-transition-group altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants