Skip to content

Feature - Lazy Load Improvements #102

@lux-v

Description

@lux-v

@dChiamp @rsm0128 @drewbaker

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 ID
  • fetchBefore (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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions