Coursify
Create New CourseGalleryContact

NextJS

Unit 1
Routing
Routing BasicsRouting AdvancedCustom Routing
Unit 2 • Chapter 3

Custom Data Fetching

Video Summary

This video is about using SWR to fetch data in Next.js. SWR is a hook that handles caching, revalidation, focus tracking, refetching on interval and a lot more. In this video, we will look at implementing basic client-side data fetching with SWR. We will achieve the same result as fetching the dashboard data in the previous video. The only difference is that we will use SWR to fetch the data.

Knowledge Check

What is the name of the hook used to fetch data in Next.js with SWR?

What happens if you change the data in db.json and refresh the browser on the dashboard page?