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

Include ApolloClient in MutationResult #1945

Merged
merged 4 commits into from
Jun 18, 2018

Conversation

cooperka
Copy link
Contributor

@cooperka cooperka commented Apr 24, 2018

ApolloClient is already exposed in the Query component; this adds it to Mutation as well. For example, after this PR you can call client.resetStore() after logging in.

Tested and verified locally.

Docs PR: apollographql/apollo-client#3370

/label feature

@ghost ghost added the feature New addition or enhancement to existing solutions label Apr 24, 2018
@cooperka
Copy link
Contributor Author

This change causes a lot of snapshots to update. I'm not informed enough to know if the updates are expected. Jest also seemingly isn't respecting my --updateSnapshot flag. I'll let a maintainer verify and commit those when they have time.

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.

Thanks for this @cooperka! I've adjusted the tests, so we should be all set here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New addition or enhancement to existing solutions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants