Skip to content

Commit c5c1a7a

Browse files
committed
add project and task prefetches to the dashboard prefetch
1 parent 22cf7cf commit c5c1a7a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

resources/js/utils/prefetch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ function prefetchDashboard(queryClient: QueryClient) {
7979
const organizationId = getCurrentOrganizationId();
8080
if (!organizationId) return;
8181

82+
// Prefetch projects and tasks for RecentlyTrackedTasksCard
83+
prefetchProjects(queryClient);
84+
prefetchTasks(queryClient);
85+
8286
// Prefetch all dashboard card data
8387
queryClient.prefetchQuery({
8488
queryKey: ['timeEntries', organizationId],

0 commit comments

Comments
 (0)