Frontend First cover image

Frontend First

Sync code, async UI

Jul 6, 2021
58:33

Sam and Ryan continue to put some more pieces of the Suspense puzzle together as they talk about how throwing promises enables devs to write synchronous code while still building asynchronous (non-blocking) UI. They also talk about sharing state across pages in Next.js.

Topics include:

  • 0:00 – Intro
  • 1:08 – Sharing state across pages in Next.js
  • 9:03 – Confronting JS object identity up-front in React, and buiding consistent trees of different versions of your UI in parallel
  • 25:55 – How Suspense lets you represent async UI with sync code
  • 42:00 – Interruptibility and push vs. pull
  • 49:20 – The problem of invalidation, and the Suspense cache

Links:

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