T
TanStack16mo ago
national-gold

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
sunny-green
sunny-green16mo ago
so set retry: 0 ?
national-gold
national-goldOP16mo ago
This is my code:
No description
national-gold
national-goldOP16mo ago
and when I tried this:
No description
national-gold
national-goldOP16mo ago
I tried this already but still no luck
sunny-green
sunny-green16mo ago
sorry, I can't help with screenshots. Please show a reproduction (codesandbox, stackblitz)
national-gold
national-goldOP16mo ago
Will do. Thank you!
national-gold
national-goldOP16mo 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?