react/packages/react-server/src
Sebastian Markbåge 5690932765
Add onErrorShell Callback (#23247)
This indicates that an error has happened before the shell completed and
there's no point in emitting the result of this stream.

This is not quite the same as other fatal errors that can happen even
after streaming as started.

It's also not quite the same as onError before onCompleteShell because
onError can be called for an error inside a Suspense boundary before the
shell completes.

Implement shell error handling in Node SSR fixtures

Instead of hanging indefinitely.

Update Browser Fixture

Expose onErrorShell to the Node build

This API is not Promisified so it's just a separate callback instead.

Promisify the Browser Fizz API

It's now a Promise of a readable stream. The Promise resolves when the
shell completes. If the shell errors, the Promise is rejected.
2022-02-08 22:38:14 -05:00
..
__tests__ Basic Fizz Architecture (#20970) 2021-03-11 12:01:41 -08:00
forks Implement identifierPrefix option for useId (#22855) 2021-12-02 17:49:43 -08:00
ReactFizzClassComponent.js [Fizz] Minor Fixes for Warning Parity (#21618) 2021-06-03 19:54:31 -04:00
ReactFizzComponentStack.js [Fizz] Implement Component Stacks in DEV for warnings (#21610) 2021-06-03 13:02:41 -07:00
ReactFizzContext.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactFizzHooks.js Implement identifierPrefix option for useId (#22855) 2021-12-02 17:49:43 -08:00
ReactFizzNewContext.js Fix context providers in SSR when handling multiple requests (#23171) 2022-01-24 17:52:51 +00:00
ReactFizzServer.js Add onErrorShell Callback (#23247) 2022-02-08 22:38:14 -05:00
ReactFizzTreeContext.js fix typos (#22715) 2021-11-15 10:58:21 -05:00
ReactFlightServer.js Add onRecoverableError option to hydrateRoot, createRoot (#23207) 2022-02-04 07:57:33 -08:00
ReactFlightServerBundlerConfigCustom.js Dedupe module id generation (#20172) 2020-11-10 19:58:58 -08:00
ReactFlightServerConfig.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactFlightServerConfigStream.js [Flight] Add global onError handler (#21129) 2021-03-29 19:36:16 -07:00
ReactServerFormatConfig.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactServerStreamConfig.js [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
ReactServerStreamConfigBrowser.js [Fizz] Implement Legacy renderToString and renderToNodeStream on top of Fizz (#21276) 2021-06-14 12:54:30 -07:00
ReactServerStreamConfigNode.js [Fizz] Implement Legacy renderToString and renderToNodeStream on top of Fizz (#21276) 2021-06-14 12:54:30 -07:00