dillon1000/react
Commit
Browse files [Flight] Yolo Retention of Promises (#33737)
Follow up to #33736. If we need to save on CPU/memory pressure, we can instead just pray and hope that a Promise doesn't get garbage collected before we need to read it. This can cause fragile access to the Promise value in devtools especially if it's a slow and pressured render. Basically, you'd have to hope that GC doesn't run after the inner await finishes its microtask callback and before the resolution of the component being rendered is invoked.
Changed paths1 file
First-parent comparisonpackages/react-server/src/ReactFlightServerConfigDebugNode.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…