Skip to content

Commit

Permalink
Add networkStatus to the result returned by useSuspenseQuery (#10657
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jerelmiller authored Mar 17, 2023
1 parent 54c4d2f commit db305a8
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 81 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-ladybugs-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/client': patch
---

Return `networkStatus` in the `useSuspenseQuery` result.
15 changes: 15 additions & 0 deletions docs/shared/useSuspenseQuery-result.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ This property can be ignored when using the default `errorPolicy` or an `errorPo
<tr>
<td>

<tr>
<td>

###### `networkStatus`

`NetworkStatus`
</td>

<td>

A number indicating the current network state of the query's associated request. [See possible values.](https://github.com/apollographql/apollo-client/blob/d96f4578f89b933c281bb775a39503f6cdb59ee8/src/core/networkStatus.ts#L4)

</td>
</tr>

###### `client`

`ApolloClient`
Expand Down
Loading

0 comments on commit db305a8

Please sign in to comment.