Skip to content

Commit 9b496af

Browse files
committed
Filter virtual instances above the slice
1 parent c35c41a commit 9b496af

File tree

1 file changed

+4
-0
lines changed
  • packages/react-devtools-shared/src/backend/fiber

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,10 @@ export function attach(
16641664
data: ReactComponentInfo,
16651665
secondaryEnv: null | string,
16661666
): boolean {
1667+
if (!isInFocusedActivity) {
1668+
return true;
1669+
}
1670+
16671671
// For purposes of filtering Server Components are always Function Components.
16681672
// Environment will be used to filter Server vs Client.
16691673
// Technically they can be forwardRef and memo too but those filters will go away

0 commit comments

Comments
 (0)