It ships with a new API
. The idea is to be able to log/report (via
) the “recoverable errors” that might happen in React, notably during the hydration process when there are some mismatches between SSR and CSR.
Nice release including one of the most highly anticipated feature: on-demand Incremental Static Regeneration (ISR). A new API
unstable_revalidate("/static-page-url") should significantly help for CMS integration: as you can now get an immediate update on CMS publish.
On SWC side: 6 new Babel plugins ported to Rust (including Styled-Components and Relay), SWC minify in release-candidate and a better zero-config integration with Jest
There’s also some notable progress on React 18 and Server Components support, but it’s still in alpha.
An interesting release on the deployment part: new
serverBuildTarget option to configure the build (directory, module format), possibility to build the server in a single output file, and a new experimental adapter to deploy on Deno.
Widely known problem for a long time, the TypeScript type for
is too loose and does not permit to catch some errors at compile time. Kevin suggests to create a
type and provides an ESLint rule to forbid the usage of
. Similar article