From ff1b63f79693356c140ff561e9f8ea969545f6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 17 Jul 2022 19:15:59 +0200 Subject: [PATCH] Fix notifications loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/notifications/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/notifications/index.tsx b/app/soapbox/features/notifications/index.tsx index 62e67fdb5..f97c17a7f 100644 --- a/app/soapbox/features/notifications/index.tsx +++ b/app/soapbox/features/notifications/index.tsx @@ -69,7 +69,7 @@ const Notifications = () => { const handleLoadOlder = useCallback(debounce(() => { const last = notifications.last(); dispatch(expandNotifications({ maxId: last && last.get('id') })); - }, 300, { leading: true }), []); + }, 300, { leading: true }), [notifications]); const handleScrollToTop = useCallback(debounce(() => { dispatch(scrollTopNotifications(true));