Turborepo Performance Optimizations
Less code, better UX: Fetching data faster with the Next.js 13 App Router

Less code, better UX: Fetching data faster with the Next.js 13 App Router

2/10/2023

What this post added

This post details the data fetching improvements in Next.js 13's App Router, focusing on React Server Components. It explains how data can be fetched directly within components, reducing boilerplate compared to the `pages` directory's `getServerSideProps` and `getStaticProps`. It highlights the benefits of Server Components for fetching data on the server, improving security and reducing client-server roundtrips. The post also explains how `fetch()` is now static by default, with options for revalidation and `no-store` for dynamic data, leveraging the Web API and async/await.

Read the original post ↗