Invalidate query?
If the component mounts and fetch is complete and then the component unmounts and remounts, I realized that isError and isSuccess have the previous values before the last unmount so you have to use isFetching to know if the query completed.
I am not sure why but the request is being done but it doesnt execute the code inside the query function. Is this normal and expected behavior?
0 Replies