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
perf(ui): avoid unnecessary remounting of DraggableSortable (#14463)
The `DraggableSortable` (rendered in the list view when sorting columns)
was unmounted and re-mounted multiple times when loading a page. This
happened because the `useMemo` we used in `PillSelector` was returning a
new function reference on each recomputation => every time it ran,
`DraggableSortable` remounted.
This means the ID generated by `useId` in `DraggableSortable` changed
multiple times during load. This made the hydration issues in my
[Next.js 16 PR](#14456) more
difficult to debug.
This PR removes the unnecessary re-mounting, improving performance and
potentially reducing the risk of hydration issues.
0 commit comments