Skip to content

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jan 8, 2025
1 parent 7570ddf commit 21ff0a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/scan/src/web/components/inspector/overlay/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ export const getChangedProps = (fiber: Fiber): Set<string> => {
if (!isEqual(currentValue, previousValue)) {
changes.add(key);

if (typeof currentValue !== 'function') {
const count = (propsChangeCounts.get(key) ?? 0) + 1;
propsChangeCounts.set(key, count);
}
const count = (propsChangeCounts.get(key) ?? 0) + 1;
propsChangeCounts.set(key, count);
}
}

Expand Down

0 comments on commit 21ff0a1

Please sign in to comment.