Fix DevTools bug with Suspense+LegacyHidden component (#21432)
Brian Vaughn committed
May 4, 2021 at 22:28 UTC
67ebdf88bfebb728f48d9842c479b4fac545a43d
2 files changed
+6
-1
packages/react-devtools-shared/src/backend/agent.js
+4
-1
@@ -676,7 +676,10 @@ export default class Agent extends EventEmitter<{|
676
677
onHookOperations = (operations: Array<number>) => {
678
if (__DEBUG__) {
679
- debug('onHookOperations', operations);
679
+ debug(
680
+ 'onHookOperations',
681
+ `(${operations.length}) [${operations.join(', ')}]`,
682
+ );
683
}
684
685
// TODO:
packages/react-devtools-shared/src/backend/renderer.js
+2
@@ -534,6 +534,7 @@ export function attach(
534
HostText,
535
IncompleteClassComponent,
536
IndeterminateComponent,
537
+ LegacyHiddenComponent,
538
MemoComponent,
539
OffscreenComponent,
540
SimpleMemoComponent,
@@ -841,6 +842,7 @@ export function attach(
842
case HostPortal:
843
case HostText:
844
case Fragment:
845
+ case LegacyHiddenComponent:
846
case OffscreenComponent:
847
return true;
848
case HostRoot: