Skip to content

Disable query retries on client errors in oRPC operations #40

@spietras

Description

@spietras

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.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions