Skip to content

Commit

Permalink
prevent table retries
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Jan 13, 2025
1 parent 653f378 commit c3c88dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export function useTableDataQuery({ table, query }: Props) {
rows,
};
},
retry: false,
enabled: !!table && !!query,
refetchInterval: (query) => {
if (query.state.error) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export function useTablesQuery() {
.filter(isDefined)
.sort(({ namespace }) => (internalNamespaces.includes(namespace) ? 1 : -1));
},
retry: false,
refetchInterval: 5000,
});
}

0 comments on commit c3c88dc

Please sign in to comment.