rsnext/packages/next/src
Wyatt Johnson 7018a65de4
Missing Postpone Detection Fix (#59891)
### What?

Previously, if an error such as the client side rendering bailout (not
to be confused with the static rendering bailout which PPR supercedes)
occurs during render, and the `postpone` function was invoked during the
original render, then the `staticGenerationStore` would incorrectly
report that the render did call `postpone`, because the value is not
reset on the render for the error page.

### How?

Returning no error when the standard render is used and returning the
error when the error render was used ensures that we don't warn about
missing postpone data when a client side rendering bailout occurs.

### Looking Ahead

A refactor of the `AsyncLocalStorage` should be done such that the
stores are:

1. Returned by the calling function so we aren't reaching into store
properties at different parts
2. Reorganizing the stores so that they're tied to the invocation
lifetime, not the entire request lifetime, so that operations (like
postpone) should only be available during renders that support postpone,
not all renders during a request.

Closes NEXT-1927
2024-01-09 13:03:17 -07:00
..
api Alias nextjs api entry to esm version for app router (#59852) 2023-12-23 17:46:50 +01:00
bin start performance profiling after node.js version is checked (#59028) 2023-11-29 02:35:06 +00:00
build Change color of output bundle size (#60385) 2024-01-09 15:05:41 +01:00
bundles Upgrade webpack to 5.86.0 (#50992) 2023-06-08 20:35:12 +00:00
cli docs: Add docs for next dev --experimental-https (#60357) 2024-01-07 11:32:27 -06:00
client Fix missing source code display for some jsx errors (#60390) 2024-01-09 16:30:25 +01:00
compiled refactor(dev-overlay): remove chalk (#60317) 2024-01-08 21:55:17 +00:00
experimental/testmode Testmode: support edge functions inside a sandbox (#59179) 2023-12-04 16:47:34 -08:00
export fix catch-all route normalization for default parallel routes (#60240) 2024-01-05 14:20:45 -08:00
lib refactor: simplify the call in lib.picocolors (#60386) 2024-01-08 18:15:18 +00:00
pages enable verbatimModuleSyntax to make type imports/exports explicit (#56551) 2023-10-07 15:09:54 +00:00
server Missing Postpone Detection Fix (#59891) 2024-01-09 13:03:17 -07:00
shared/lib log a dev warning when a missing parallel slot results in a 404 (#60186) 2024-01-04 07:56:20 -08:00
telemetry Enable build worker by default (#59405) 2023-12-13 13:36:56 +00:00
trace Remove path normalization logic when uploading .next/trace traces (#59305) 2023-12-18 13:15:02 -08:00