diff --git a/ui/component/common/wait-until-on-page.jsx b/ui/component/common/wait-until-on-page.jsx index d37b4cd78..53cb9886e 100644 --- a/ui/component/common/wait-until-on-page.jsx +++ b/ui/component/common/wait-until-on-page.jsx @@ -2,11 +2,10 @@ import React from 'react'; import debounce from 'util/debounce'; -const DEBOUNCE_SCROLL_HANDLER_MS = 300; +const DEBOUNCE_SCROLL_HANDLER_MS = 25; type Props = { children: any, - lastUpdateDate?: any, skipWait?: boolean, placeholder?: any, }; @@ -15,10 +14,6 @@ export default function WaitUntilOnPage(props: Props) { const ref = React.useRef(); const [shouldRender, setShouldRender] = React.useState(false); - React.useEffect(() => { - setShouldRender(false); - }, [props.lastUpdateDate]); - React.useEffect(() => { const handleDisplayingRef = debounce((e) => { const element = ref && ref.current;