Skip to content

Commit

Permalink
Reduce confusion about the query component (#9747)
Browse files Browse the repository at this point in the history
* Reduce confusion about the query component

The query component has never been mentioned in the page, to reduce confusion, a link to its page would explain that it’s deprecated

* empty commit to kick off checks

Co-authored-by: sharils <3063067+sharils@users.noreply.github.com>
  • Loading branch information
jpvajda and sharils committed May 20, 2022
1 parent 297cfec commit d4928e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/data/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ We've already seen that the `useQuery` hook exposes our query's current loading
Let's return to our refetching example from the previous section. If you click the refetch button, you'll see that the component doesn't re-render until the new data arrives. What if we want to indicate to the user that we're refetching the photo?

The `useQuery` hook's result object provides fine-grained information about the status of the query via the `networkStatus` property. To take advantage
of this information, we set the `notifyOnNetworkStatusChange` option to `true` so our query component re-renders while a refetch is in flight:
of this information, we set the `notifyOnNetworkStatusChange` option to `true` so our [query component](../api/react/components/ "Components - Client (React) - Apollo GraphQL Docs") re-renders while a refetch is in flight:

```jsx title="index.js" {4,8,12}
import { NetworkStatus } from '@apollo/client';
Expand Down

0 comments on commit d4928e8

Please sign in to comment.