Skip to content

Commit

Permalink
Fix DevTools bug with Suspense+LegacyHidden component (#21432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed May 5, 2021
1 parent e9a4a44 commit 67ebdf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-devtools-shared/src/backend/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ export function attach(
HostText,
IncompleteClassComponent,
IndeterminateComponent,
LegacyHiddenComponent,
MemoComponent,
OffscreenComponent,
SimpleMemoComponent,
Expand Down Expand Up @@ -841,6 +842,7 @@ export function attach(
case HostPortal:
case HostText:
case Fragment:
case LegacyHiddenComponent:
case OffscreenComponent:
return true;
case HostRoot:
Expand Down

0 comments on commit 67ebdf8

Please sign in to comment.