DEV Community

Discussion on: Different ways to fetch data in Next.js (server-side) and when to use them

cucheng profile image
Trương Đình Chiến

Tks bro, i still using swr to fecth data from api.But i think post list should use getStaticProps togenerated at build time and will be reused on each request.

Thread Thread
jameswallis profile image
James Wallis Author

Yeah that sounds sensible.