4 ms·
Next.js 12.1: On-demand ISR, SWC support for styled-components, Relay, Jest
- leerob 5y agoI built a fun demo of on-demand ISR: http://on-demand-isr.vercel.app http://on-demand-isr.vercel.app When a GitHub issue is created or commented on, a webhook is fired which calls `unstable_revalidate()`, revalidates the page, and purges the cache globally in ~300ms.
- steventey 5y agoThis is MASSIVE!! Kudos to the team on the release – on-demand ISR has been one of the most highly-requested features ever!!
- TheFutureIsNear 5y agoThe ability to revalidate on demand is really powerful. I'm curious what the rational for adding it to the response object as opposed to an import from Next.js.
- leerob 5y agoIf you think an import option could be helpful, would you mind leaving that feedback here? http://on-demand-isr.vercel.app http://on-demand-isr.vercel.app - thank you!
- creativedg 5y agoHuge release! Thank to the hard work and the team. I'll try the On-demand ISR right away, almost waited one year. I have just updated my Next.js to version 12.1: https://github.com/ixartz/Next-js-Boilerplate https://github.com/ixartz/Next-js-Boilerplate I didn't get any issue with the update, it's already an excellent news!
- joshiefishbein 5y agoOn-demand ISR of any sort is a big win for me. It seems right now `unstable_revalidate` can only take a single string suggesting one path at a time. I would love for this feature to accept an array of strings – or better yet – maybe a regex so I can rebuild entire branches of a sitemap. Either way I have been loving Next.js since starting to use it again in version 11 after trying a few other alternatives over the years.