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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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
codeworks before you navigate through Vue Router. However, once you go away and come back thecodecontinues to change correctly, but theresultstops 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