Skip to content

Commit 3dc9a8a

Browse files
authored
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.
1 parent c7e494b commit 3dc9a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@ export function attach(
15701570
case ContextConsumer:
15711571
case MemoComponent:
15721572
case SimpleMemoComponent:
1573+
case ForwardRef:
15731574
// For types that execute user code, we check PerformedWork effect.
15741575
// We don't reflect bailouts (either referential or sCU) in DevTools.
15751576
// eslint-disable-next-line no-bitwise

0 commit comments

Comments
 (0)