dillon1000/react

Commit

Move the Error creation to be lazy (#24728)

Creating an Error captures a stack trace which can be somewhat expensive.
We shouldn't do tthat always for every render.

This also ensures that the stack trace is more useful because you can
follow through the Node.js code to see the cause.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/server/ReactDOMFizzServerNode.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…