Unable to resetStore while using Nuxt #283
Replies: 9 comments
-
Full code:
|
Beta Was this translation helpful? Give feedback.
-
Maybe this is an issue with apollo-client? |
Beta Was this translation helpful? Give feedback.
-
Ok. So should I post this in their repo? |
Beta Was this translation helpful? Give feedback.
-
@gijo-varghese Any fix found ? Not sure this is working for me too |
Beta Was this translation helpful? Give feedback.
-
Working or not working? I haven't found a fix yet |
Beta Was this translation helpful? Give feedback.
-
@gijo-varghese Ping me if you're having more informations. I'll try investigate inside the library directly. |
Beta Was this translation helpful? Give feedback.
-
@Akryum I've updated the |
Beta Was this translation helpful? Give feedback.
-
I think you can put the socket listeners in a Nuxt middleware instead? |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with Nuxt, but it seems you need to put it where you will have access to the ApolloClient (and only on client-side). |
Beta Was this translation helpful? Give feedback.
-
I would like to reset all queries when web socket is reconnected. Here is what I tried. But it's not working
When I tried
console.log($nuxt.$apollo);
I got:Beta Was this translation helpful? Give feedback.
All reactions