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
{{ message }}
Repository navigation
[DataGrid] Grid style updates don't cause re-render #7962
When the DataGrid accepts a gridStyle prop, updates to that prop don't cause the data grid to re-render.
In the above example, if you use the data grid controls to change the density, you'll see the grid re-render in response. However, if you click the button at the top "Reset to Compact", which explicitly sets the grid style to compact, it doesn't re-render (even though you can see the console logging the new grid style):
Screen.Recording.2024-08-13.at.2.32.23.PM.mov
Impact and severity
This isn't currently a big issue, but it was found as part of elastic/kibana#188495 (comment). We will have a workaround for that PR, but it would be nice if this could be fixed so the workaround can be removed.
Thanks ya'll! We've added this to our backlog. We would be super happy to receive a PR for this -- otherwise we'll lump this into some larger Data Grid work we're planning for this quarter.
Activity
pamellix commentedon Aug 14, 2024
@lukasolson I'll try to fix it
JasonStoltz commentedon Aug 19, 2024
Thanks ya'll! We've added this to our backlog. We would be super happy to receive a PR for this -- otherwise we'll lump this into some larger Data Grid work we're planning for this quarter.
[Unified Data Table] Stop passing data grid density as `key` (#202390)
[Unified Data Table] Stop passing data grid density as `key` (elastic…