Skip to content
React Deep Dive: cache episode artwork

EPISODE · Feb 7, 2024 · 1H 7M

React Deep Dive: cache

from Frontend First · host Frontend First

Ryan and Sam discuss the purpose and usage of the cache() function, a new experimental API from React. Topics include: 0:00 - Intro 2:29 - Caching in Next.js vs. React cache() 8:11 - Why React invalidates the cache for each server request 14:43 - How cache() enables colocation of data-fetching code 16:14 - Using cache() to share CPU-heavy or I/O-bound tasks between components 19:31 - Why cache() obviates the need for context in Server Components 23:19 - The danger of module scope on the server 27:54 - Why cache() is implemented with AsyncLocalStorage 41:04 - Why cache() is part of React 48:27 - Why Server Components don’t support cache() 53:04 - How cache() eliminates waterfalls Links: Ryan’s YouTube video on React Cache

Episode metadata supplied by the publisher feed · Published Feb 7, 2024

Embed this episode

Ryan and Sam discuss the purpose and usage of the cache() function, a new experimental API from React.

Distinct summary based on available episode metadata or transcript content.

Ready to play

React Deep Dive: cache

0:00 1:07:28

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Frontend First?

This episode is 1 hour and 7 minutes long.

When was this Frontend First episode published?

This episode was published on February 7, 2024.

Can I download this Frontend First episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!