mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix DevTools bug with Suspense+LegacyHidden component (#21432)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user