Is it possible to use the getPosts function to dynamically loading the previous posts, for example for an infinite loading homepage?
A code like this one require an API/Endpoint to fetch the page, but I don't have the skills to translate that code for the getPostsfunction (and I prefer to don't generate a json).
Hi, thanks for your code. I'm a newbie.
Is it possible to use the
getPosts
function to dynamically loading the previous posts, for example for an infinite loading homepage?A code like this one require an API/Endpoint to fetch the page, but I don't have the skills to translate that code for the
getPosts
function (and I prefer to don't generate a json).Any help are appreciated.