Skip to content

Commit c8421df

Browse files
Brian Vaughnkoto
authored andcommitted
Fix DevTools bug with Suspense+LegacyHidden component (facebook#21432)
1 parent 78be95b commit c8421df

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,10 @@ export default class Agent extends EventEmitter<{|
676676

677677
onHookOperations = (operations: Array<number>) => {
678678
if (__DEBUG__) {
679-
debug('onHookOperations', operations);
679+
debug(
680+
'onHookOperations',
681+
`(${operations.length}) [${operations.join(', ')}]`,
682+
);
680683
}
681684

682685
// TODO:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ export function attach(
534534
HostText,
535535
IncompleteClassComponent,
536536
IndeterminateComponent,
537+
LegacyHiddenComponent,
537538
MemoComponent,
538539
OffscreenComponent,
539540
SimpleMemoComponent,
@@ -841,6 +842,7 @@ export function attach(
841842
case HostPortal:
842843
case HostText:
843844
case Fragment:
845+
case LegacyHiddenComponent:
844846
case OffscreenComponent:
845847
return true;
846848
case HostRoot:

0 commit comments

Comments
 (0)