From c5c1a7af134a9a19ff1a835a7617b66742869925 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Fri, 13 Feb 2026 13:52:49 +0100 Subject: [PATCH] add project and task prefetches to the dashboard prefetch --- resources/js/utils/prefetch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/utils/prefetch.ts b/resources/js/utils/prefetch.ts index 17f8bf73..0f4f7c4e 100644 --- a/resources/js/utils/prefetch.ts +++ b/resources/js/utils/prefetch.ts @@ -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],