diff --git a/web/src/App.tsx b/web/src/App.tsx index 5244213..92bae96 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -10,7 +10,13 @@ import Toast from "./components/notifications/Toast"; export const queryClient = new QueryClient({ defaultOptions: { - queries: { useErrorBoundary: true }, + queries: { + // The retries will have exponential delay. + // See https://tanstack.com/query/v4/docs/guides/query-retries#retry-delay + // delay = Math.min(1000 * 2 ** attemptIndex, 30000) + retry: true, + useErrorBoundary: true + }, mutations: { onError: (error) => { // Use a format string to convert the error object to a proper string without much hassle. diff --git a/web/src/components/data-table/Cells.tsx b/web/src/components/data-table/Cells.tsx index 08c2b7c..dc331c6 100644 --- a/web/src/components/data-table/Cells.tsx +++ b/web/src/components/data-table/Cells.tsx @@ -12,7 +12,7 @@ interface CellProps { export const AgeCell = ({ value }: CellProps) => (