dillon1000/react

Commit

[Fiber] Assign implicit debug info to used thenables (#34146)

Similar to #34137 but for Promises.

This lets us pick up the debug info from a raw Promise as a child which
is not covered by `_debugThenables`. Currently ChildFiber doesn't stash
its thenables so we can't pick them up from devtools after the fact
without some debug info added to the parent.

It also lets us track some approximate start/end time of use():ed
promises based on the first time we saw this particular Promise.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberThenable.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…