Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Use ApolloClient#stop to clean up MockedProvider client. #2741

Merged
merged 1 commit into from
Jan 19, 2019

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Jan 19, 2019

This stop method was introduced in [email protected]: apollographql/apollo-client#4336

Credit to @danilobuerger for suggesting we hide the details of stopping the MockedProvider client using a new ApolloClient method: https://apollographql.slack.com/archives/C2FERSTGC/p1547849096341900

The stop method would have made #2738 a non-issue, since we could easily change the implementation of stop without affecting its consumers.

@benjamn benjamn self-assigned this Jan 19, 2019
benjamn added a commit to apollographql/apollo-client that referenced this pull request Jan 19, 2019
This reverts commit 9739ff6.

Now that we have a uniform interface for terminating ApolloClient
instances (#4336), there should be no need for any external code to access
the QueryScheduler abstraction, which this commit removes.

We should wait to merge and release this change until after
apollographql/react-apollo#2741 has been merged
and released, so that we don't break older versions of MockedProvider.
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks @benjamn!

@danilobuerger
Copy link
Contributor

Works on my machine 😅

@benjamn benjamn merged commit efac246 into master Jan 19, 2019
@benjamn benjamn deleted the use-apollo-client-stop-method branch January 19, 2019 18:33
benjamn added a commit to apollographql/apollo-client that referenced this pull request Jan 22, 2019
This reverts commit 9739ff6.

Now that we have a uniform interface for terminating ApolloClient
instances (#4336), there should be no need for any external code to access
the QueryScheduler abstraction, which this commit removes.

We should wait to merge and release this change until after
apollographql/react-apollo#2741 has been merged
and released, so that we don't break older versions of MockedProvider.
benjamn added a commit to apollographql/apollo-client that referenced this pull request Jan 22, 2019
This reverts commit 9739ff6.

Now that we have a uniform interface for terminating ApolloClient
instances (#4336), there should be no need for any external code to access
the QueryScheduler abstraction, which this commit removes.

We should wait to merge and release this change until after
apollographql/react-apollo#2741 has been merged
and released, so that we don't break older versions of MockedProvider.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants