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
→ [ Ссылка ]
👉🏼 Project source code (Github)
→ [ Ссылка ]
👉🏼 React documentation
→ [ Ссылка ]
👉🏼 Work with me
→ [ Ссылка ]
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
![](https://i.ytimg.com/vi/A8JGtz2yF9g/maxresdefault.jpg)