In this video, we'll use React's new `cache` function to optimize our NextJs app by caching data fetches and expensive computations and pre-loading data prior to rendering the component.
👉🏼 The Ultimate NextJs 14 Course
→ https://www.hamedbahram.io/courses/ne...
👉🏼 Project source code (Github)
→ https://github.com/HamedBahram/react-...
👉🏼 React documentation
→ https://react.dev/reference/react/cache
👉🏼 Work with me
→ https://www.hamedbahram.io/hire
Chapters
0:00 Intro
3:20 Convention
5:15 Caveats
7:45 Example usecases
12:20 When to use cache
15:25 Project code setup
16:50 Caching db queries
19:25 Preloading data
24:54 Recap
Смотрите видео Optimize data fetching with the new `cache` function in NextJs онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Hamed Bahram 12 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,786 раз и оно понравилось 189 людям.