Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make provideApolloClient default client disposable. #1518

Open
sschneider-ihre-pvs opened this issue Nov 8, 2023 · 0 comments
Open

Make provideApolloClient default client disposable. #1518

sschneider-ihre-pvs opened this issue Nov 8, 2023 · 0 comments

Comments

@sschneider-ihre-pvs
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant