@samitouri / QOS-React-2 / commits / 3dc9a8af05

fix forward ref (#24494)

Resolves #24428 --- For fiber types that render user code, we check the PerformedWork flag rather than the props, ref, and state to see if the fiber rendered (rather than bailing out/etc.) so we know whether we need to do things like record profile durations. ForwardRef wasn't added to this list, which caused #24428.

Luna Ruan committed May 4, 2022 at 13:25 UTC 3dc9a8af05f98d185ca55d56f163dbb46e7ad3f4
1 file changed +1
packages/react-devtools-shared/src/backend/renderer.js
+1
@@ -1570,6 +1570,7 @@ export function attach(
1570 case ContextConsumer:
1571 case MemoComponent:
1572 case SimpleMemoComponent:
1573 + case ForwardRef:
1574 // For types that execute user code, we check PerformedWork effect.
1575 // We don't reflect bailouts (either referential or sCU) in DevTools.
1576 // eslint-disable-next-line no-bitwise