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
Watch video Optimize data fetching with the new `cache` function in NextJs online without registration, duration hours minute second in high quality. This video was added by user Hamed Bahram 12 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,786 once and liked it 189 people.