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•13mo ago
so set
retry: 0
?variable-limeOP•13mo ago
This is my code:

variable-limeOP•13mo ago
and when I tried this:

variable-limeOP•13mo ago
I tried this already but still no luck
deep-jade•13mo ago
sorry, I can't help with screenshots. Please show a reproduction (codesandbox, stackblitz)
variable-limeOP•13mo ago
Will do. Thank you!
variable-limeOP•13mo 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