My New Favorite Pagination Method

Pagination is so important when it comes to displaying data in your app. This approach of server-side pagination in Next.js 13 Server Components is so cool for that. I implemented something similar on accident while building a dashboard and figured this works so well with pagination too.

Test this for yourself!: https://gist.github.com/joschan21/7adf028d81a75536abcb1e98100ac661

— my links
Discord: https://discord.gg/4vCRMyzgA5
My GitHub: https://github.com/joschan21