mattjennings / sveltekit-blog-template

A SvelteKit blog template
https://sveltekit-blog-template.vercel.app
MIT License
229 stars 35 forks source link

Dynamically loading posts (infinite loading) #4

Closed RiccardoPP closed 2 years ago

RiccardoPP commented 2 years ago

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 getPostsfunction (and I prefer to don't generate a json).

Any help are appreciated.