pl-fe: migrate suggested accounts to react query

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-11-10 21:01:44 +01:00
parent 781a2430e4
commit 8f8bd724cb
11 changed files with 63 additions and 158 deletions

View File

@@ -11,7 +11,6 @@ import { fetchMarker } from 'pl-fe/actions/markers';
import { expandNotifications } from 'pl-fe/actions/notifications';
import { register as registerPushNotifications } from 'pl-fe/actions/push-notifications';
import { fetchScheduledStatuses } from 'pl-fe/actions/scheduled-statuses';
import { fetchSuggestionsForTimeline } from 'pl-fe/actions/suggestions';
import { fetchHomeTimeline } from 'pl-fe/actions/timelines';
import { useUserStream } from 'pl-fe/api/hooks/streaming/use-user-stream';
import SidebarNavigation from 'pl-fe/components/sidebar-navigation';
@@ -388,9 +387,7 @@ const UI: React.FC<IUI> = ({ children }) => {
dispatch(fetchDraftStatuses());
dispatch(fetchHomeTimeline(false, () => {
dispatch(fetchSuggestionsForTimeline());
}));
dispatch(fetchHomeTimeline());
dispatch(expandNotifications())
// @ts-ignore