Fix DevTools bug with Suspense+LegacyHidden component (#21432)

This commit is contained in:
Brian Vaughn
2021-05-04 22:28:17 -04:00
committed by GitHub
parent e9a4a44aae
commit 67ebdf88bf
2 changed files with 6 additions and 1 deletions

View File

@@ -676,7 +676,10 @@ export default class Agent extends EventEmitter<{|
onHookOperations = (operations: Array<number>) => {
if (__DEBUG__) {
debug('onHookOperations', operations);
debug(
'onHookOperations',
`(${operations.length}) [${operations.join(', ')}]`,
);
}
// TODO:

View File

@@ -534,6 +534,7 @@ export function attach(
HostText,
IncompleteClassComponent,
IndeterminateComponent,
LegacyHiddenComponent,
MemoComponent,
OffscreenComponent,
SimpleMemoComponent,
@@ -841,6 +842,7 @@ export function attach(
case HostPortal:
case HostText:
case Fragment:
case LegacyHiddenComponent:
case OffscreenComponent:
return true;
case HostRoot: