mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
add break time entries and simplified time tracker ui
This commit is contained in:
@@ -91,12 +91,13 @@ function prefetchDashboard(queryClient: QueryClient) {
|
||||
prefetchTasks(queryClient);
|
||||
|
||||
// Prefetch all dashboard card data
|
||||
// Must match the query in RecentlyTrackedTasksCard exactly — same key, same params
|
||||
queryClient.prefetchQuery({
|
||||
queryKey: ['timeEntries', organizationId],
|
||||
queryFn: () =>
|
||||
api.getTimeEntries({
|
||||
params: { organization: organizationId },
|
||||
queries: { limit: 10, offset: 0, only_full_dates: 'true' },
|
||||
queries: { member_id: getCurrentMembershipId(), type: 'work' },
|
||||
}),
|
||||
staleTime: 30000,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user