T
TanStack13mo ago
variable-lime

Help about the retries I really want to disable it when I received or the fetch throws an error:

Hi everyone just want to seek help about the retries.
7 Replies
deep-jade
deep-jade13mo ago
so set retry: 0 ?
variable-lime
variable-limeOP13mo ago
This is my code:
No description
variable-lime
variable-limeOP13mo ago
and when I tried this:
No description
variable-lime
variable-limeOP13mo ago
I tried this already but still no luck
deep-jade
deep-jade13mo ago
sorry, I can't help with screenshots. Please show a reproduction (codesandbox, stackblitz)
variable-lime
variable-limeOP13mo ago
Will do. Thank you!
variable-lime
variable-limeOP13mo ago
In the web it seems it is working fine. But in the react native/expo it occurs the infinite retries. Btw do we have a docs for setting it up to react native aside from this? https://tanstack.com/query/latest/docs/framework/react/react-native I might have setup the query client and provider wrong.
React Native | TanStack Query React Docs
React Query is designed to work out of the box with React Native, with the exception of the devtools, which are only supported with React DOM at this time. There is a 3rd party Expo plugin which you can try: https://github.com/expo/dev-plugins/tree/main/packages/react-query

Did you find this page helpful?