Disable retrying globally (#2038)
This commit is contained in:
parent
c07d27645f
commit
005fc7cc38
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ export const queryClient = new QueryClient({
|
||||||
// "first seen" timestamps on objects to determine if they're fresh.
|
// "first seen" timestamps on objects to determine if they're fresh.
|
||||||
// Disable this optimization so that we can rely on "first seen" timestamps.
|
// Disable this optimization so that we can rely on "first seen" timestamps.
|
||||||
structuralSharing: false,
|
structuralSharing: false,
|
||||||
|
// We don't want to retry queries by default, because in most cases we
|
||||||
|
// want to fail early and show a response to the user. There are
|
||||||
|
// exceptions, and those can be made on a per-query basis. For others, we
|
||||||
|
// should give users controls to retry.
|
||||||
|
retry: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue