News for hackers. Stuff that matters.
Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by creativedg on Thursday February 17, 2022 @12:22PM (#30375851)
Huge 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

I didn't get any issue with the update, it's already an excellent news!

Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by TheFutureIsNear on Thursday February 17, 2022 @11:41AM (#30375153)
The 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.
Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by leerob on Thursday February 17, 2022 @11:46AM (#30375229)
If you think an import option could be helpful, would you mind leaving that feedback here? http://on-demand-isr.vercel.app - thank you!
Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by joshiefishbein on Thursday February 17, 2022 @02:05PM (#30377193)
On-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.

Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by leerob on Thursday February 17, 2022 @11:47AM (#30375242)
I built a fun demo of on-demand ISR: 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.

Re:Next.js 12.1: On-demand ISR, SWC support for styled-compo... by steventey on Thursday February 17, 2022 @11:30AM (#30374948)
This is MASSIVE!! Kudos to the team on the release – on-demand ISR has been one of the most highly-requested features ever!!