Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(ui): pagination resets perPage (#10199)
When using various controls within the List View, those selections are sometimes not persisted. This is especially evident when selecting `perPage` from the List View, where the URL and UI would reflect this selection, but the controls would be stale. Similarly, after changing `perPage` then navigating to another page through the pagination controls, `perPage` would reset back to the original value. Same with the sort controls, where sorting by a particular column would not be reflected in the UI. This was because although we modify the URL search params and fire off a new query with those changes, we were not updating local component state.
J
Jacob Fletcher committed
fad4ee62823664ec74ee6590d0ce3ccac2c01f34
Parent: 6b4842d
Committed by GitHub <noreply@github.com>
on 12/27/2024, 7:32:36 PM