T
TanStack15mo ago
xenial-black

Query reload QueryFn problem

Hello friends, how are you, I am presenting an update failure when using useQuery in the queryFn. I am using react native with Expo. Changing the 'queryFn' function completely is supposed to reset the useQuery and resubmit the request, but it doesn't. continue with the old function 'That's if I have the function in an external file'. but if I have the function in the same react component, the function is updated but with some kind of delay, example: function 1 says hello word, and function 2 says hello. when updating to function 2 it still says hello word, but suppose there is a third function that says hi, when updating to the third function it now shows hello. I apologize this is not my native language, I am using a translator
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?