dillon1000/react
Commit
Browse files [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
Changed paths2 files
First-parent comparisonpackages/react-server-dom-fb/src/ReactDOMServerFB.js ModifiedM packages/react-server-dom-fb/src/__tests__/ReactDOMServerFB-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…