You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/src/api/use-mutation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,6 @@
47
47
48
48
-`called`: boolean `Ref` holding `true` if the mutation was already called.
49
49
50
-
-`onDone`: Event hook called when the mutation successfully completes.
50
+
-`onDone(handler)`: Event hook called when the mutation successfully completes. Handler is called with: `result` (mutation result) and `context` which is an object with `client` (ApolloClient instance).
51
51
52
-
-`onError`: Event hook called when an error occurs.
52
+
-`onError(handler)`: Event hook called when an error occurs. Handler is called with: `error` and `context` which is an object with `client` (ApolloClient instance).
Copy file name to clipboardExpand all lines: packages/docs/src/api/use-query.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@
60
60
61
61
-`subscribeToMore(options)`: Add a subscription to the query, useful to add new data received from the server in real-time. See [Subscription](../guide-composable/subscription#subscribetomore).
62
62
63
-
-`onResult(handler)`: Event hook called when a new result is available.
63
+
-`onResult(handler)`: Event hook called when a new result is available. Handler is called with: `result` (query result) and `context` which is an object with `client` (ApolloClient instance).
64
64
65
-
-`onError(handler)`: Event hook called when an error occurs.
65
+
-`onError(handler)`: Event hook called when an error occurs. Handler is called with: `error` and `context` which is an object with `client` (ApolloClient instance).
Copy file name to clipboardExpand all lines: packages/docs/src/api/use-subscription.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
34
34
-`variables`: Ref holding the variables object.
35
35
36
-
-`onResult(handler)`: Event hook called when a new result is available.
36
+
-`onResult(handler)`: Event hook called when a new result is available. Handler is called with: `result` (new result) and `context` which is an object with `client` (ApolloClient instance).
37
37
38
-
-`onError(handler)`: Event hook called when an error occurs.
38
+
-`onError(handler)`: Event hook called when an error occurs. Handler is called with: `error` and `context` which is an object with `client` (ApolloClient instance).
0 commit comments