Using SWR React Hooks With Next.js’ Incremental Static Regeneration (ISR)
Smashing Magazine
SEPTEMBER 9, 2021
The solution used in Scrapbook was to use the SWR library of React hooks to update the cached page from the server with client side data fetching. The client is first served the cached statically generated page (generated with getStaticProps() ), in the background the server also begins the process of revalidating that page (read more here ).
Let's personalize your content