fix(Bookmarks): remove useless useEffect

it was causing bugs also, not showing all bookmarked posts
This commit is contained in:
P. Reis 2024-12-04 22:52:26 -03:00
parent 19b4078af6
commit 231f3ff56a
1 changed files with 0 additions and 5 deletions

View File

@ -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();
};