use full for fast loading than weekly for payee report

This commit is contained in:
2026-05-01 16:59:56 +05:30
parent cc7e6509d2
commit 5f85abdf86

View File

@@ -15,7 +15,7 @@ export function useDashboardData(type: "expense" | "income") {
// Fetch reports for aggregation // Fetch reports for aggregation
const weeklyReport = useReportList({ period: "weekly", rolling: true }); const weeklyReport = useReportList({ period: "weekly", rolling: true });
const monthlyReport = useReportList({ period: "monthly", rolling: true }); const monthlyReport = useReportList({ period: "monthly", rolling: true });
const payeeReport = useReportList({ period: "weekly", rolling: true, group_by: "payee" }); const payeeReport = useReportList({ period: "full", rolling: true, group_by: "payee" });
const isLoading = const isLoading =
latestQuery.isLoading || latestQuery.isLoading ||