You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[data grid] React 19 - everything that depends on GridRootPropsContext re-renders on every state change (or root re-render) if the ref prop is present #15770
Found in the midst of another PR, so opening an issue so it doesn't go overlooked, especially now that there's official React 19 support and React 19 is stable.
Worth noting that it can also affect instances where developers don't actually provide a ref, but have created an abstracted component over the Datagrid which passes forward the ref prop by explicitly naming it as ref={ref} even if ref={undefined}. This was the case for us. Which means that the potential share of users affected is much wider.
Not sure if the problem affects any other areas of the DataGrid as well, but probably not as critical as this.
cc @arminmeh, since you worked on the React 19 support