add project and task prefetches to the dashboard prefetch

This commit is contained in:
Gregor Vostrak
2026-02-13 13:52:49 +01:00
parent 22cf7cf74d
commit c5c1a7af13

View File

@@ -79,6 +79,10 @@ function prefetchDashboard(queryClient: QueryClient) {
const organizationId = getCurrentOrganizationId();
if (!organizationId) return;
// Prefetch projects and tasks for RecentlyTrackedTasksCard
prefetchProjects(queryClient);
prefetchTasks(queryClient);
// Prefetch all dashboard card data
queryClient.prefetchQuery({
queryKey: ['timeEntries', organizationId],