fix staleTime to 5m instead of infinity

This commit is contained in:
2026-10-23 23:56:20 +02:00
parent f42649b888
commit 421106bf71
+3 -3
View File
@@ -12,11 +12,11 @@ import {
// fetchQuery() through the same cache.
export const queryClient = new QueryClient();
// Login/logout are full-page redirects, so the user can't change within a
// page load - only refetched once after a reload (see restoreQueryCache).
// Login/logout are full-page redirects, but roles/scopes can still change
// server-side, so don't keep the user forever.
export const userQuery = () => ({
...polylanSubmitterApiGetUserInfoOptions(),
staleTime: Infinity,
staleTime: 5 * 60 * 1000,
});
// Games only change when staff enable/disable one, a few minutes of