Please login or sign up to post and edit reviews.
Playing with Server Components in Vercel’s Edge Runtime
Podcast |
Frontend First
Media Type |
audio
Categories Via RSS |
Technology
Publication Date |
Aug 22, 2022
Episode Duration |
00:51:28

Ryan tells Sam about some experiments he’s been running using Server Components in Vercel’s new edge runtime. He talks about how components that suspend in the node runtime cause the static build of your Next.js app to wait until they unsuspend, while components that suspend in the edge runtime stream back fallback responses as data is being fetched. Ryan also tells Sam about a blocking JS trick he learned to alter the initial render of your clientside app based on client-specific data, like whether their theme preference is dark or light mode.

Topics include:

  • 0:00 - Intro
  • 1:00 - Running synchronous JS before React’s initial render of build-time generated HTML
  • 17:03 - Using getServerSideProps on the edge in Next.js for run-time generated HTML
  • 32:15 - Behavior of Server Components that suspend in edge runtime vs. node runtime

Links:

Ryan tells Sam about some experiments he’s been running using Server Components in Vercel’s new edge runtime. He talks about how components that suspend in the node runtime cause the static build of your Next.js app to wait until they unsuspend, while components that suspend in the edge runtime stream back fallback responses as data is being fetched. Ryan also tells Sam about a blocking JS trick he learned to alter the initial render of your clientside app based on client-specific data, like whether their theme preference is dark or light mode.

Ryan tells Sam about some experiments he’s been running using Server Components in Vercel’s new edge runtime. He talks about how components that suspend in the node runtime cause the static build of your Next.js app to wait until they unsuspend, while components that suspend in the edge runtime stream back fallback responses as data is being fetched. Ryan also tells Sam about a blocking JS trick he learned to alter the initial render of your clientside app based on client-specific data, like whether their theme preference is dark or light mode.

Topics include:

  • 0:00 - Intro
  • 1:00 - Running synchronous JS before React’s initial render of build-time generated HTML
  • 17:03 - Using getServerSideProps on the edge in Next.js for run-time generated HTML
  • 32:15 - Behavior of Server Components that suspend in edge runtime vs. node runtime

Links:

This episode currently has no reviews.

Submit Review
This episode could use a review!

This episode could use a review! Have anything to say about it? Share your thoughts using the button below.

Submit Review