[data grid] Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release #13432
Labels
component: data grid
This is the name of the generic UI component, not the React module!
external dependency
Blocked by external dependency, we can’t do anything about it
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Steps to reproduce
Link to live example: https://github.com/MessiDaGod/react-hydration-error
Steps to reproduce
Table rendering
Dev tools error
Current behavior
logging error to console
Expected behavior
not logging error to console
Context
get rid of annoying error, eventually fixing the root issue of ref now being a regular prop in react 19
Your environment
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.1 - D:\repos\react-hydration-error\node_modules.bin\npm.CMD
pnpm: 8.15.7 - ~\AppData\Local\pnpm\pnpm.CMD
Browsers:
Chrome: Not Found
Edge: Chromium (125.0.2535.92)
npmPackages:
@emotion/react: ^11.11.4 => 11.11.4
@emotion/styled: ^11.11.5 => 11.11.5
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.15.19
@mui/material: ^5.15.19 => 5.15.19
@mui/private-theming: 5.15.14
@mui/styled-engine: 5.15.14
@mui/system: 5.15.15
@mui/types: 7.2.14
@mui/utils: 5.15.14
@mui/x-data-grid: ^7.6.2 => 7.6.2
react: ^19.0.0-rc-cc1ec60d0d-20240607 => 19.0.0-rc-f994737d14-20240522
react-dom: ^19.0.0-rc-cc1ec60d0d-20240607 => 19.0.0-rc-f994737d14-20240522
types-react: 19.0.0-rc.0
typescript: ^5.4.5 => 5.4.5
Search keywords: element.ref React 19 React@rc react-dom@rc
The text was updated successfully, but these errors were encountered: