Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9c368a0

Browse files
committedJan 22, 2025··
Deprecate ignoreResults in useMutation
1 parent bf313a3 commit 9c368a0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎.changeset/khaki-cars-develop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": patch
3+
---
4+
5+
Deprecate option `ignoreResults` in `useMutation`.

‎src/react/types/types.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ export interface BaseMutationOptions<
358358
) => void;
359359
/** {@inheritDoc @apollo/client!MutationOptionsDocumentation#onError:member} */
360360
onError?: (error: ApolloError, clientOptions?: BaseMutationOptions) => void;
361-
/** {@inheritDoc @apollo/client!MutationOptionsDocumentation#ignoreResults:member} */
361+
/**
362+
* {@inheritDoc @apollo/client!MutationOptionsDocumentation#ignoreResults:member}
363+
* @deprecated This property will be removed in the next major version of Apollo Client
364+
*/
362365
ignoreResults?: boolean;
363366
}
364367

0 commit comments

Comments
 (0)
Please sign in to comment.