vuejs / apollo

🚀 Apollo/GraphQL integration for VueJS

Home Page:http://apollo.vuejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make `provideApolloClient` default client disposable.

sschneider-ihre-pvs opened this issue · comments

currently, when you invoke the provideApolloClient method with a valid client you are pretty much stuck with it. If you are using something like cy.intercept then the cache of the apollo client gets hit if you make subsequent requests in different tests resulting in cy.wait not working if you wait for a certain operation.
since provideApolloClient actually returns a function that should release the default client I tried that but with no result. The cache was still there.

It would be great if there would be something like a dispose function to get rid of the client and be able to provide a different client or the same client again.