From 9d9facbe075c2884b27b533bce8779441308f1dd Mon Sep 17 00:00:00 2001 From: karooolis Date: Fri, 13 Dec 2024 16:58:37 +0200 Subject: [PATCH] increase polling interval --- .../explorer/src/app/(explorer)/queries/useWorldAbiQuery.ts | 2 +- packages/explorer/src/components/LatestBlock.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/explorer/src/app/(explorer)/queries/useWorldAbiQuery.ts b/packages/explorer/src/app/(explorer)/queries/useWorldAbiQuery.ts index a54e0775c2..2177e7810f 100644 --- a/packages/explorer/src/app/(explorer)/queries/useWorldAbiQuery.ts +++ b/packages/explorer/src/app/(explorer)/queries/useWorldAbiQuery.ts @@ -28,7 +28,7 @@ export function useWorldAbiQuery(): UseQueryResult { isWorldDeployed: data.isWorldDeployed, }; }, - refetchInterval: 5000, + refetchInterval: 5000000, enabled: false, }); } diff --git a/packages/explorer/src/components/LatestBlock.tsx b/packages/explorer/src/components/LatestBlock.tsx index b493022b82..8ddcdfe896 100644 --- a/packages/explorer/src/components/LatestBlock.tsx +++ b/packages/explorer/src/components/LatestBlock.tsx @@ -8,7 +8,8 @@ export function LatestBlock() { watch: true, chainId, query: { - refetchInterval: 1000, + refetchInterval: 10000000, + enabled: false, }, });