Skip to content

Commit

Permalink
PR Review
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellule committed Jan 26, 2025
1 parent 5ccf837 commit b0c8aba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changeset/khaki-cars-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

Deprecate option `ignoreResults` in `useMutation`.
Once this option is removed, existing code still using it might see increase in re-renders.
Instead, please use `useApolloClient` to get your ApolloClient instance and call `client.mutate` directly.
If you don't want to synchronize your component state with the mutation, please use `useApolloClient` to get your ApolloClient instance and call `client.mutate` directly.
3 changes: 1 addition & 2 deletions src/react/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ export interface BaseMutationOptions<
* {@inheritDoc @apollo/client!MutationOptionsDocumentation#ignoreResults:member}
*
* @deprecated This property will be removed in the next major version of Apollo Client.
* Once this option is removed, existing code still using it might see increase in re-renders.
* Instead, please use `useApolloClient` to get your ApolloClient instance and call `client.mutate` directly.
* If you don't want to synchronize your component state with the mutation, please use `useApolloClient` to get your ApolloClient instance and call `client.mutate` directly.
*/
ignoreResults?: boolean;
}
Expand Down

0 comments on commit b0c8aba

Please sign in to comment.