useQuery stops working when in a Store combined with Vue Router #1551
Unanswered
dtroyano86
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using useQuery function outside of Setup, it stops returning results after navigating with Vue Router.
I set up a StackBlitz to demonstrate the behavior but I will also explain it here.
Given a store that looks like this example
And a Component like this
Clicking the button to change the
code
works before you navigate through Vue Router. However, once you go away and come back thecode
continues to change correctly, but theresult
stops updating.In my actual source code in this setup I provide a custom link to the Apollo Provider and it doesn't even get called.
No matter what I try, there aren't even any errors, it's as if Apollo just vanished.
Can anyone help me with this?
Beta Was this translation helpful? Give feedback.
All reactions