It seems that a useQuery() sometimes gets unsubscribed for no apparent reason, how can I accurately diagnose when this happens? #171
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi, could you try to use the new vue-query devtools plugin for the vue devtools? Solution:
|
Beta Was this translation helpful? Give feedback.
Hi, could you try to use the new vue-query devtools plugin for the vue devtools?
In there you can find the timeline with events about vue-query.
Then after getting back to your application you can check whether query got refetched after page has been refocused (it should be the case, unless you opt-out from that via config).
This should tell us whether query has still active subscription and only optimistic updates get broken, or whole subscription got lost.
Solution: