TanStack Query retries 3 times by default. If the query is based on oRPC operation, then you can decide whether to retry or not based on the status code. Client errors should not be retried, only server errors should. This behaviour is generic enough to be enabled globally in the default options when creating QueryClient.
TanStack Query retries 3 times by default. If the query is based on
oRPCoperation, then you can decide whether to retry or not based on the status code. Client errors should not be retried, only server errors should. This behaviour is generic enough to be enabled globally in the default options when creatingQueryClient.