rsnext/packages
Jimmy Lai c52cb5ad83
feat(app): add experimental.missingSuspenseWithCSRBailout (#57642)
### What?

This PR adds a new flag called
`experimental.missingSuspenseWithCSRBailout`.

### Why?

Via this PR we can break a build when calling `useSearchParams` without
wrapping it in a suspense boundary.

If no suspense boundaries are present, Next.js must avoid doing SSR and
defer the entire page's rendering to the client. This is not a great
default. Instead, we will now break the build so that you are forced to
add a boundary.

### How?

Add an experimental flag. If a `BailoutToCSRError` error is thrown and
this flag is enabled, the build should fail and log an error, instead of
showing a warning and bail the entire page to client-side rendering.

Closes NEXT-1770

---------

Co-authored-by: Balázs Orbán <info@balazsorban.com>
Co-authored-by: Wyatt Johnson <accounts+github@wyattjoh.ca>
2024-01-10 00:26:24 +01:00
..
create-next-app v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
eslint-config-next v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
eslint-plugin-next v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
font v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next feat(app): add experimental.missingSuspenseWithCSRBailout (#57642) 2024-01-10 00:26:24 +01:00
next-bundle-analyzer v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-codemod v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-env v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-mdx v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-plugin-storybook v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-polyfill-module v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-polyfill-nomodule v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
next-swc v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
react-dev-overlay v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
react-refresh-utils v14.0.5-canary.46 2024-01-09 23:22:17 +00:00
third-parties v14.0.5-canary.46 2024-01-09 23:22:17 +00:00