In this video I'm going to show you how to automatically refresh a Next.js app whenever data in an external system changes.
Code: https://buildui.com/recipes/refresh-app-router-cache-server-action
- 0:00 - Intro
- 1:23 - Server action
- 4:18 - Refresh component
- 6:49 - Interval with focus event
- 9:47 - Outro
Check out my latest course "Data fetching with React Server Components" exclusively on Build UI: https://buildui.com/courses/react-server-components