From b35ef90525288696c1e2f78c934a96e350cc0c6d Mon Sep 17 00:00:00 2001 From: Andrius Stanaitis Date: Mon, 23 Jan 2023 16:11:34 +0200 Subject: [PATCH] Run lint --- packages/core/src/hooks/useMeasure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/hooks/useMeasure.js b/packages/core/src/hooks/useMeasure.js index e21ae7af9..3a1d2af96 100644 --- a/packages/core/src/hooks/useMeasure.js +++ b/packages/core/src/hooks/useMeasure.js @@ -12,8 +12,8 @@ export const useMeasure = () => { const [observer] = useState(() => { // Check if ResizeObserver is defined in current env (could be browser, node.js, jsdom etc.). - if (typeof ResizeObserver === 'undefined') return null - + if (typeof ResizeObserver === 'undefined') return null + return new ResizeObserver(([entry]) => setBounds(entry.contentRect)) })