Back to Browse

Optimize data fetching with the new `cache` function in NextJs

7.0K views
Mar 12, 2024
25:30

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/nextjs 👉🏼 Project source code (Github) → https://github.com/HamedBahram/react-cache 👉🏼 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

Download

0 formats

No download links available.

Optimize data fetching with the new `cache` function in NextJs | NatokHD