Using SSR is one of my favorite features of Next.js but sometimes your data is updated outside of your application or even in it and the SSR data is stale. Lets fix that.
Join this channel to get access to perks:
/ @james-perkins
Want to support the channel? Click below
https://www.buymeacoffee.com/jamesper...
Follow me on:
📃 Website/Blog: https://jamesperkins.dev
👉 Twitter: / james_r_perkins
👉 Linkedin: / james-perkins-268992a4
👉 Github: https://github.com/perkinsjr
👉 Discord : / discord
00:00 - intro
01:14 - Application overview
01:38 - Why this app?
01:48 - The example app
02:38 - What does our button do right now?
03:04 - The issue
04:24 - The solution
05:24 - What is router.replace and router.asPath?
06:18 - Finishing the code
06:50 - Testing the code
07:12 - Some Considerations
07:36 - Outro