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

Instead of _embed and breaking the posts to pages for pagination, actually handle pagination on the WP API level #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aXlireza
Copy link

Neat stuff here, just couldn't side with getting all data via API and then doing the pagination beside the fact I'm not sure if for posts above 100 numbers whether it would be passed to the client.
I tweaked it, to handle page and perPage and Total pages by API(for some reason the total page and total posts numbers are in response header).
Had to change up the pagination UI a bit as well, ignore that and didn't have the patience for the type issue.

Copy link

vercel bot commented Feb 20, 2025

@aXlireza is attempting to deploy a commit to the 9d8 Team on Vercel.

A member of the Team first needs to authorize it.

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