Skip to content

Commit

Permalink
chore: remove forward ref tag
Browse files Browse the repository at this point in the history
The forward ref tag was noisy as it applies to most leaf nodes when using a UI library
  • Loading branch information
RobPruzan committed Mar 6, 2025
1 parent 366cb0d commit 6e470b0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/scan/src/web/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,6 @@ export const getExtendedDisplayName = (fiber: Fiber): ExtendedDisplayName => {
});
}

if (
tag === ForwardRefTag ||
(type as { $$typeof?: symbol })?.$$typeof ===
Symbol.for('react.forward_ref')
) {
wrapperTypes.push({
type: 'forwardRef',
title:
'Component that can forward refs to DOM elements or other components',
});
}

if (tag === LazyComponentTag) {
wrapperTypes.push({
type: 'lazy',
Expand Down

0 comments on commit 6e470b0

Please sign in to comment.