Frontend First cover image

Frontend First

Tim Neutkens on the Next.js App Router

Aug 16, 2023
Tim Neutkens discusses the Next.js app router, leveraging Server Components and React's cache API. He explains partial revalidation and UI updates from server-side state changes, as well as caching layers and stability focus. Also discussed are server component rendering, composition vs. top-down data flow, revalidation after a user event, back and forward navigation, and current focus on stability, performance, education, and TurboPack.
01:45:02

Podcast summary created with Snipd AI

Quick takeaways

  • The Next.js app router leverages Server Components and React's new cache API to bring composability to server-side code.
  • Server Actions enable partial revalidation in a single round trip to the server, allowing for targeted refreshes and optimal code structure.

Deep dives

Benefits of React Cache

React Cache provides memoization capabilities, allowing functions to return the same value when called with the same arguments within the same request. This improves performance and ensures consistent data across components. It is similar to memoization in other languages where expensive operations are only performed once and then cached for subsequent calls. In the context of React, the cache API encourages co-location of data requirements with components, simplifying development and enabling more composable and deleteable code.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode