diff --git a/src/internal/hooks/container-queries/use-resize-observer.ts b/src/internal/hooks/container-queries/use-resize-observer.ts index 8050e6f760..0c159cf867 100644 --- a/src/internal/hooks/container-queries/use-resize-observer.ts +++ b/src/internal/hooks/container-queries/use-resize-observer.ts @@ -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; } @@ -49,7 +49,7 @@ export function useResizeObserver( ); useEffect(() => { - if (!disabled) { + if (disabled) { return; }