Skip to content

Conversation

@jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Dec 27, 2024

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.

@jacobsfletch jacobsfletch enabled auto-merge (squash) December 27, 2024 18:21
@jacobsfletch jacobsfletch merged commit fad4ee6 into main Dec 27, 2024
67 checks passed
@jacobsfletch jacobsfletch deleted the fix/pagination-with-perpage branch December 27, 2024 19:32
@github-actions
Copy link
Contributor

🚀 This is included in version v3.12.0

kendelljoseph pushed a commit that referenced this pull request Feb 21, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants