From c3c88dc204b074c144c94ddde9a228cd70addbce Mon Sep 17 00:00:00 2001 From: karooolis Date: Mon, 13 Jan 2025 08:58:44 +0200 Subject: [PATCH] prevent table retries --- .../explorer/src/app/(explorer)/queries/useTableDataQuery.ts | 1 + packages/explorer/src/app/(explorer)/queries/useTablesQuery.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/explorer/src/app/(explorer)/queries/useTableDataQuery.ts b/packages/explorer/src/app/(explorer)/queries/useTableDataQuery.ts index 6756d0ef5f..bf1f75f08d 100644 --- a/packages/explorer/src/app/(explorer)/queries/useTableDataQuery.ts +++ b/packages/explorer/src/app/(explorer)/queries/useTableDataQuery.ts @@ -79,6 +79,7 @@ export function useTableDataQuery({ table, query }: Props) { rows, }; }, + retry: false, enabled: !!table && !!query, refetchInterval: (query) => { if (query.state.error) return false; diff --git a/packages/explorer/src/app/(explorer)/queries/useTablesQuery.ts b/packages/explorer/src/app/(explorer)/queries/useTablesQuery.ts index cce7ea9550..90c132fa81 100644 --- a/packages/explorer/src/app/(explorer)/queries/useTablesQuery.ts +++ b/packages/explorer/src/app/(explorer)/queries/useTablesQuery.ts @@ -55,6 +55,7 @@ export function useTablesQuery() { .filter(isDefined) .sort(({ namespace }) => (internalNamespaces.includes(namespace) ? 1 : -1)); }, + retry: false, refetchInterval: 5000, }); }