Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clauderic committed Nov 23, 2024
1 parent 3c4f627 commit 835ae76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/hooks/utilities/useRects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export function useRects(
if (!elements.length) {
return defaultValue;
}

return elements.map((element) =>
isDocumentScrollingElement(element)
? (windowRect as ClientRect)
: new Rect(measure(element), element)
);
});
}

const resizeObserver = useResizeObserver({callback: measureRects});

useIsomorphicLayoutEffect(() => {
Expand Down

0 comments on commit 835ae76

Please sign in to comment.