dillon1000/react

Commit

[Flight] Create a fast path parseStackTrace which skips generating a string stack (#33735)

When we know that the object that we pass in is immediately parsed, then
we know it couldn't have been reified into a unstructured stack yet. In
this path we assume that we'll trigger `Error.prepareStackTrace`.

Since we know that nobody else will read the stack after us, we can skip
generating a string stack and just return empty. We can also skip
caching.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-server/src/ReactFlightServer.js ModifiedM packages/react-server/src/ReactFlightServerConfigDebugNode.js ModifiedM packages/react-server/src/ReactFlightStackConfigV8.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…