diff --git a/src/react/components/Navbar.jsx b/src/react/components/Navbar.jsx index 707675c6..0dbf17a7 100644 --- a/src/react/components/Navbar.jsx +++ b/src/react/components/Navbar.jsx @@ -165,7 +165,7 @@ const Navbar = forwardRef((props, ref) => { useEffect(() => { initScroll(); return destroyScroll; - }); + }, []); const isOutline = typeof outline === 'undefined' ? theme === 'ios' : outline;