fix(app): enable React Strict Mode by default (#53375)
### What? Let Next.js enable React Strict Mode by default for the App Router. This caught a bug with the `AppRouterAnnouncer` added in #47018 which should be fixed as well. ### Why? This logic: https://github.com/vercel/next.js/blob/a0d1d728b9003f12c9df6c5e9a33bc4c33cef0ab/packages/next/src/build/webpack-config.ts#L326-L333 assumes that the default value of `reactStrictMode` is `null`, but it was set to `false` in #46656. ### How? This PR reverts the default value to `null`. Closes NEXT-1484 Fixes #53315 --------- Co-authored-by:Tim Neutkens <tim@timneutkens.nl>
Showing
Please
register
or
sign in
to comment