dillon1000/react

Commit

Mark context consumers with PerformedWork effect on render (#12729)

* Mark new component types with PerformedWork effect

* Don't do it for ForwardRef

Since this has some overhead and ForwardRef is likely going to be used around context, let's skip it.
We don't highlight ForwardRef alone in DevTools anyway.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberBeginWork.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…