@@ -68,9 +68,19 @@ export interface QueryFunctionOptions<
68
68
> extends BaseQueryOptions < TVariables , TData > {
69
69
/** {@inheritDoc @apollo/client!QueryOptionsDocumentation#skip:member } */
70
70
skip ?: boolean ;
71
- /** {@inheritDoc @apollo/client!QueryOptionsDocumentation#onCompleted:member } */
71
+ /**
72
+ * {@inheritDoc @apollo/client!QueryOptionsDocumentation#onCompleted:member }
73
+ *
74
+ * @deprecated This option will be removed in the next major version of Apollo Client.
75
+ * For more context, please see the [related issue](https://github.com/apollographql/apollo-client/issues/12352) on GitHub.
76
+ */
72
77
onCompleted ?: ( data : MaybeMasked < TData > ) => void ;
73
- /** {@inheritDoc @apollo/client!QueryOptionsDocumentation#onError:member } */
78
+ /**
79
+ * {@inheritDoc @apollo/client!QueryOptionsDocumentation#onError:member }
80
+ *
81
+ * @deprecated This option will be removed in the next major version of Apollo Client.
82
+ * For more context, please see the [related issue](https://github.com/apollographql/apollo-client/issues/12352) on GitHub.
83
+ */
74
84
onError ?: ( error : ApolloError ) => void ;
75
85
76
86
// Default WatchQueryOptions for this useQuery, providing initial values for
@@ -167,9 +177,19 @@ export interface LazyQueryHookOptions<
167
177
TData = any ,
168
178
TVariables extends OperationVariables = OperationVariables ,
169
179
> extends BaseQueryOptions < TVariables , TData > {
170
- /** {@inheritDoc @apollo/client!QueryOptionsDocumentation#onCompleted:member } */
180
+ /**
181
+ * {@inheritDoc @apollo/client!QueryOptionsDocumentation#onCompleted:member }
182
+ *
183
+ * @deprecated This option will be removed in the next major version of Apollo Client.
184
+ * For more context, please see the [related issue](https://github.com/apollographql/apollo-client/issues/12352) on GitHub.
185
+ */
171
186
onCompleted ?: ( data : MaybeMasked < TData > ) => void ;
172
- /** {@inheritDoc @apollo/client!QueryOptionsDocumentation#onError:member } */
187
+ /**
188
+ * {@inheritDoc @apollo/client!QueryOptionsDocumentation#onError:member }
189
+ *
190
+ * @deprecated This option will be removed in the next major version of Apollo Client.
191
+ * For more context, please see the [related issue](https://github.com/apollographql/apollo-client/issues/12352) on GitHub.
192
+ */
173
193
onError ?: ( error : ApolloError ) => void ;
174
194
175
195
/** @internal */
0 commit comments