-
We have a React Native app using Expo and React Navigation. We are trying to upgrade dependencies and have run into issues with React Query. For new queries, useQuery never return data; isLoading always returns true. The second time the query is run with the same key it seems to work. The requests are successfully being made but userQuery appears to be just silently updating the cache. I've narrowed it down to the upgrade from 3.5.14 to 3.5.15 (a one line change). I have tried to create a repro in a simple Expo app but have not been able to get it to fail in the same way. I'm looking for any thoughts on what might be causing this or how to debug. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think we figured this out. Not sure on the why, but I think we have a resolution. We were writing to react-native-async-storage/async-storage during app state changes more often that we needed. Fixing that resolved this issue. |
Beta Was this translation helpful? Give feedback.
I think we figured this out. Not sure on the why, but I think we have a resolution. We were writing to react-native-async-storage/async-storage during app state changes more often that we needed. Fixing that resolved this issue.