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
-
Hi Experts,
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 theonSuccess
callback was not executed, and thedata
returned fromuseQuery
was always undefined, theonError
was not executed.Looks like sometimes the query result was "ignored" by
useQuery
. The only possibility I could think of is, sometimes theenabled
property was set tofalse
before 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