fix: run leaderboard stats in background

This commit is contained in:
吉鑫升 committed 2026-06-05 21:15:20 +08:00
1 parent f4ccef8c70
commit db1b32612b
4 files changed
+269 -1

No files matched your search

+4
View File
@@ -33,6 +33,10 @@ export function useUserLeaderboard(
limit,
],
queryFn: () => getUserLeaderboard(range, limit),
refetchInterval: (query) => {
const status = query.state.data?.status;
return status === "running" || status === "refreshing" ? 3000 : false;
},
});
}