fix(beszel): leverage TanStack Query for stale-while-revalidate caching (#6055)
This commit is contained in:
1 parent
ea9dd716f0
commit
bbc4589c9e
6 files changed
+24
-24
No files matched your search
@@ -76,7 +76,7 @@ export default function BeszelSystemTableWidget({
|
||||
isPending,
|
||||
} = clientApi.widget.beszel.getSystems.useQuery(
|
||||
{ integrationIds },
|
||||
{ staleTime: 5_000, refetchInterval: 5_000, retry: false },
|
||||
{ staleTime: 10_000, gcTime: 48 * 60 * 60 * 1000, refetchInterval: 10_000, retry: false },
|
||||
);
|
||||
const size = getSizeConfig(width);
|
||||
|
||||
|
||||
Reference in new issue
Block a user