dillon1000/react

Commit

[Fizz] Allow passing a reason to `abortStream` (#26992)

## Summary

Currently `ReactFizzServer.abort` allows you to pass in the a `reason`
error, which then gets passed to the `onError` handler for each task
that ends up getting aborted. This adds in the ability to pass down that
same `reason` error to `ReactDOMServerFB.abortStream` as well.

## How did you test this change?

Added a test case to ReactDOMServerFB-test.internal.js
Browse files
Changed paths2 files
First-parent comparison
M packages/react-server-dom-fb/src/ReactDOMServerFB.js ModifiedM packages/react-server-dom-fb/src/__tests__/ReactDOMServerFB-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…