Skip to content

Commit 0477e88

Browse files
darrylheinAkryum
authored andcommitted
docs: Add error to smart subscription docs (#632)
1 parent db09a38 commit 0477e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api/smart-subscription.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Each subscription declared in the `apollo.$subscribe` option in a component resu
99
- `throttle`: throttle variables updates (in ms).
1010
- `debounce`: debounce variables updates (in ms).
1111
- `result(data, key)` is a hook called when a result is received
12+
- `error(error)` is a hook called when there are errors. `error` is an Apollo error object with either a `graphQLErrors` property or a `networkError` property.
1213

1314
## Properties
1415

0 commit comments

Comments
 (0)