-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor pagination #3
Comments
Also not greying out when getting to bottom of list. May be because it includes the count for unpublished content. |
It was to do with drafts. This will likely be resolved along with #2. |
Now looking to change the ‘load more’ button to a next/previous page feature (pagination). Hopefully that will resolve the issue with needing to count all the entries through GraphQL and the issue of the load more button not working very well. |
The Load More button never really worked well, because of the Strapi issues counting results in GraphQL. I’m thinking best to change this to pagination. If need be, could query all the results to get the total numbers. This isn’t ideal resources wise, but it is always going to be a pretty small database, and as long as we are not pulling all the images and only the text data it shouldn’t make much difference. |
Implemented infinite scroll. Ideally need to wait for Strapi v4 for better GraphQL support to be able to allow loading of next set of results rather than reload of them all on each scroll. Will look to refactor at that stage. |
When you have loaded all the results, the Load More button greys out. But when you have filtered results, it doesn't know you have reached the end of the results because it is still using totalCount from GraphQL. Related to issue: #2
The text was updated successfully, but these errors were encountered: