dillon1000/react
Commit
Browse files 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.
Changed paths1 file
First-parent comparisonpackages/react-dom/src/server/ReactDOMFizzServerNode.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…