diff --git a/ui/effects/use-screensize.js b/ui/effects/use-screensize.js index 080779096..3ed5fa509 100644 --- a/ui/effects/use-screensize.js +++ b/ui/effects/use-screensize.js @@ -21,8 +21,6 @@ export function useWindowSize(fn) { if (isWindowClient) { window.addEventListener('resize', setSize); - setSize(); - return () => window.removeEventListener('resize', setSize); } }, [fn, isWindowClient, setWindowSize, windowSize]);