Skip to content

Commit

Permalink
fix resize observer util
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-kot committed Jul 20, 2023
1 parent b945c9d commit 5032456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/hooks/container-queries/use-resize-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useResizeObserver(
// A possible solution would be to make consumers not render any content until the first (asynchronous) observation is available.
useLayoutEffect(
() => {
if (!disabled) {
if (disabled) {
return;
}

Expand All @@ -49,7 +49,7 @@ export function useResizeObserver(
);

useEffect(() => {
if (!disabled) {
if (disabled) {
return;
}

Expand Down

0 comments on commit 5032456

Please sign in to comment.