Ep 178 - React Deep Dive: cache

Опубликовано: 07 Февраль 2024
на канале: Frontend First
1,710
74

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

PODCAST INFO:
Podcast website: https://frontendfirst.fm/
Apple Podcasts: https://podcasts.apple.com/us/podcast...
Spotify: https://open.spotify.com/show/2wcxse0...

TIMESTAMPS:
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:    • React's new cache function  

SOCIAL:
Twitter:   / frontendfirstfm  


На этой странице сайта вы можете посмотреть видео онлайн Ep 178 - React Deep Dive: cache длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Frontend First 07 Февраль 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,710 раз и оно понравилось 74 зрителям. Приятного просмотра!