fix(Bookmarks): remove useless useEffect
it was causing bugs also, not showing all bookmarked posts
This commit is contained in:
parent
19b4078af6
commit
231f3ff56a
|
@ -1,5 +1,4 @@
|
||||||
import { debounce } from 'es-toolkit';
|
import { debounce } from 'es-toolkit';
|
||||||
import { useEffect } from 'react';
|
|
||||||
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { useBookmarks } from 'soapbox/api/hooks/index.ts';
|
import { useBookmarks } from 'soapbox/api/hooks/index.ts';
|
||||||
|
@ -25,10 +24,6 @@ const Bookmarks: React.FC = () => {
|
||||||
|
|
||||||
const { bookmarks, isLoading, hasNextPage, fetchEntities, fetchNextPage } = useBookmarks();
|
const { bookmarks, isLoading, hasNextPage, fetchEntities, fetchNextPage } = useBookmarks();
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
fetchEntities();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleRefresh = () => {
|
const handleRefresh = () => {
|
||||||
return fetchEntities();
|
return fetchEntities();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue