profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Upgrade to React 19

Open canova opened this issue 4 months ago • 0 comments

Currently we are using React 18 and we should upgrade to React 19 at some point. But this React upgrade is currently blocked by some issues. We should fix them before upgrading.

Here are the issues:

  • Deprecated findDOMNode API is removed in version 19. See https://18.react.dev/reference/react-dom/findDOMNode#alternatives. It's used in:
    • [X] Context menu component.
      • Fixed by #5588.
    • [ ] withSize higher order component.
      • We need to fix this manually as well.
    • [ ] CSSTransition that comes from the react-transition-group library
      • Even though there are workarounds, it looks like react-transition-group is unmaintained. So it would be better to switch to another maintained library like react-transition-state.
  • Deprecated defaultProps API is removed in version 19. It's used in:
    • [ ] SplitterLayout that comes from the react-splitter-layout library.
      • It will be fixed by #4606 when we switch to a custom splitter layout.

Then we should be able to upgrade to the react 19. Please expand this list if you see more issues.

┆Issue is synchronized with this Jira Task

canova avatar Sep 04 '25 12:09 canova