TanStackT
TanStack3mo ago
10 replies
uncertain-scarlet

React query hanging in react native (expo)

I have been trying to debug this for quite a few hours now and I am stumped. I am seeing a
useQuery
hang right before it gets to a db query, but only the first time. It eventually returns data, but only after like 30+ seconds.

I am using the react native debugger and have confirmed that the network calls themselves are very short, like 100-200ms once they actually fire. But for some reason the useQuery refuses to return the data quickly. I have also added a fetch() in there and I can see the fetch call complete in the debugger, but the console.logs I have right after wont log until like 30 seconds after.
Was this page helpful?