Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2422df2

Browse files
authored
Deprecate ignoreResults in useMutation (#12296)
1 parent75f9e5f commit2422df2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎.changeset/khaki-cars-develop.md

Lines changed: 5 additions & 0 deletions
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

Lines changed: 4 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp