Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Remove auto-pagination for usePageQuery wrapper #564

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

aaronleopold
Copy link
Collaborator

A user reported missing libraries in their sidebar, since it was capped at 20 I knew exactly where to look. The usePageQuery wrapper function I created auto adds page details to the request, but the sidebar assumes unpaginated responses. The long term fix will be to implement cursor fetching as you scroll the sidebar, but this should do for now.

I don't have time to test right away, but I'll try to poke around and make sure this doesn't inadvertently break something else.

A user reported missing libraries in their sidebar, since it was capped at 20 I knew exactly where to look. The `usePageQuery` wrapper function I created auto adds page details to the request, but the sidebar assumes unpagination responses . The long term fix will be to implement cursor fetching as you scroll the sidebar, but this should do for now. I dont have time to test right away
@aaronleopold aaronleopold marked this pull request as ready for review January 18, 2025 20:43
@aaronleopold aaronleopold merged commit 2a89107 into develop Jan 18, 2025
7 checks passed
@aaronleopold aaronleopold deleted the al/fix-auto-pagination branch January 18, 2025 20:44
@aaronleopold aaronleopold mentioned this pull request Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant