Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

feature/383-todos-pagination #385

Merged
merged 6 commits into from
Apr 28, 2021
Merged

feature/383-todos-pagination #385

merged 6 commits into from
Apr 28, 2021

Conversation

ravewebdev
Copy link
Contributor

@ravewebdev ravewebdev commented Apr 23, 2021

References #383

Description

Adds state, refs to track and display paginated results on blog post and team routes.

Note: this PR involves duplicative code, which is to be abstracted in PR #393.

Screenshot

(Posts per page reduced to 4 for this example)
screenshot

Verification

https://nextjs-wordpress-starter-bzwhvrciz-webdevstudios.vercel.app/blog
& https://nextjs-wordpress-starter-bzwhvrciz-webdevstudios.vercel.app/team

  1. Click "load more" (if disabled, there is no next "page" of posts)
  2. Button will display loading state then next "page" of posts will be displayed.

@vercel
Copy link

vercel bot commented Apr 23, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/webdevstudios/nextjs-wordpress-starter/68vfjXQyHbZspHtk5M28icwTEpVJ
✅ Preview: https://nextjs-wordpre-git-feature-383-todos-pagination-webdev-e7e0d0.vercel.app

@ravewebdev ravewebdev changed the title Display second page of post results feature/383-todos-pagination Apr 27, 2021
@ravewebdev ravewebdev requested a review from itsamoreh April 27, 2021 21:51
@ravewebdev ravewebdev marked this pull request as ready for review April 27, 2021 21:51
@ravewebdev ravewebdev requested a review from gregrickaby as a code owner April 27, 2021 21:51
Copy link
Contributor

@itsamoreh itsamoreh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@ravewebdev ravewebdev merged commit bb902d9 into main Apr 28, 2021
@ravewebdev ravewebdev deleted the feature/383-todos-pagination branch April 28, 2021 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants