Skip to content

Commit 833f899

Browse files
committed
Update changeset
1 parent da41af3 commit 833f899

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.changeset/eighty-squids-fix.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
"@apollo/client": major
33
---
44

5-
Make `ObservableQuery.reobserve` a private API. As a result, `reobserve` has been removed from `useQuery` as well. Instead prefer to use `ObservableQuery.setOptions(newOptions)` to reevaluate the query against a new set of options.
6-
7-
`ObservableQuery.rerun` has been introduced to reevaluate the query against the current set of options. If you previously used `reobserve` with no arguments, use `rerun` instead.
5+
`ObservableQuery.setOptions` has been removed as it was an alias of `reobserve`. Prefer using `reobserve` directly instead.
86

97
```diff
108
const observable = client.watchQuery(options);
119

12-
// Use setOptions to set new options and reevaluate the query
13-
- observable.reobserve(newOptions);
14-
+ observable.setOptions(newOptions);
15-
16-
// Use rerun to reevaluate the query against the current set of options
17-
- observable.reobserve();
18-
+ observable.rerun();
10+
// Use reobserve to set new options and reevaluate the query
11+
- observable.setOptions(newOptions);
12+
+ observable.reobserve(newOptions);
1913
```
14+
15+
As a result of this change, `reobserve` has been marked for public use and is no longer considered an internal API. The `newNetworkStatus` argument has been removed to facilitate this change.

0 commit comments

Comments
 (0)