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

Commit

Permalink
add client to the mutation result
Browse files Browse the repository at this point in the history
  • Loading branch information
joshalling committed Aug 28, 2019
1 parent 1dccd46 commit 89a7d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/hooks/src/data/MutationData.ts
Expand Up @@ -42,6 +42,8 @@ export class MutationData<
public execute(result: MutationResult<TData>) {
this.isMounted = true;
this.verifyDocumentType(this.getOptions().mutation, DocumentType.Mutation);

result.client = this.client || this.refreshClient().client;
return [this.runMutation, result] as MutationTuple<TData, TVariables>;
}

Expand Down

0 comments on commit 89a7d9a

Please sign in to comment.