Skip to content

Make provideApolloClient default client disposable. #1518

Open
@sschneider-ihre-pvs

Description

@sschneider-ihre-pvs

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions