From 231f3ff56a6bc78a740503a1879db62919b90b57 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Wed, 4 Dec 2024 22:52:26 -0300 Subject: [PATCH] fix(Bookmarks): remove useless useEffect it was causing bugs also, not showing all bookmarked posts --- src/features/bookmarks/index.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/features/bookmarks/index.tsx b/src/features/bookmarks/index.tsx index 54e8dd631..79ab0940d 100644 --- a/src/features/bookmarks/index.tsx +++ b/src/features/bookmarks/index.tsx @@ -1,5 +1,4 @@ import { debounce } from 'es-toolkit'; -import { useEffect } from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { useBookmarks } from 'soapbox/api/hooks/index.ts'; @@ -25,10 +24,6 @@ const Bookmarks: React.FC = () => { const { bookmarks, isLoading, hasNextPage, fetchEntities, fetchNextPage } = useBookmarks(); - useEffect(() => { - fetchEntities(); - }, []); - const handleRefresh = () => { return fetchEntities(); };