mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
add project and task prefetches to the dashboard prefetch
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user