Tanstack-Query Caching Not Working When Calling fefetch
I’m using @tanstack/react-query in my React Native (Expo) & Firebase project. I have set everything necessary (such as QueryClientProvider). For an unknown reason chrome networking tab doesn’t work in React Native project. For this reason, I added second line to determine if api is called. When I call refetch function the word “hello” is printed to console. I guess caching doesn’t work properly. There is my code. 👇🏼