-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Our current lazy load implementation with WP OpenAPI
is not working correctly.
We need to extend our fuxt/v1/posts/
API by adding two more Query params. Not sure for the naming for the new params, but we need something like this:
fetchAfter
(accepts post ID) - it should fetch posts that comes AFTER the post with this IDfetchBefore
(accepts post ID) - it should fetch posts that comes BEFORE the post with this ID
Reason for this:
When fetching posts, we don't have an ability to tell the API from which post it should start fetching the other posts.
See the video with the explanation:
https://www.loom.com/share/0b43e58bc08f432c8ae0776da2ba2200
Reference project with a new API (WP OpenAPI):
https://github.com/funkhaus/nafta-frontend
Reference project with an old API (GQL):
https://github.com/funkhaus/picture-north-frontend
Metadata
Metadata
Assignees
Labels
No labels