mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +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();
|
const organizationId = getCurrentOrganizationId();
|
||||||
if (!organizationId) return;
|
if (!organizationId) return;
|
||||||
|
|
||||||
|
// Prefetch projects and tasks for RecentlyTrackedTasksCard
|
||||||
|
prefetchProjects(queryClient);
|
||||||
|
prefetchTasks(queryClient);
|
||||||
|
|
||||||
// Prefetch all dashboard card data
|
// Prefetch all dashboard card data
|
||||||
queryClient.prefetchQuery({
|
queryClient.prefetchQuery({
|
||||||
queryKey: ['timeEntries', organizationId],
|
queryKey: ['timeEntries', organizationId],
|
||||||
|
|||||||
Reference in New Issue
Block a user