You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a very unstable behavior on my page. The thing I observe is, sometimes the useQuery worked fine, while sometimes when I open my page, I can see my request has been sent and succeeded. But the onSuccess callback was not executed, and the data returned from useQuery was always undefined, the onError was not executed.
Looks like sometimes the query result was "ignored" by useQuery. The only possibility I could think of is, sometimes the enabled property was set to false before the request is finished. Will it influence the result? I could not find any documentation about this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Experts,
I'm experiencing a very unstable behavior on my page. The thing I observe is, sometimes the
useQueryworked fine, while sometimes when I open my page, I can see my request has been sent and succeeded. But theonSuccesscallback was not executed, and thedatareturned fromuseQuerywas always undefined, theonErrorwas not executed.Looks like sometimes the query result was "ignored" by
useQuery. The only possibility I could think of is, sometimes theenabledproperty was set tofalsebefore the request is finished. Will it influence the result? I could not find any documentation about this.I'm using react-query v3.
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions