Skip to content

Commit 20540f3

Browse files
authored
Fix link for useLazyQuery in part8b.md
Updated the link for useLazyQuery in the documentation.
1 parent 102bd30 commit 20540f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/8/en/part8b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ It is also possible to do queries with parameters with the Apollo Explorer. The
277277

278278
The *useQuery* hook is well-suited for situations where the query is done when the component is rendered. However, we now want to make the query only when a user wants to see the details of a specific person, so the query is done only [as required](https://www.apollographql.com/docs/react/data/queries/#executing-queries-manually).
279279

280-
One possibility for this kind of situations is the hook function [useLazyQuery](https://www.apollographql.com/docs/react/api/react/hooks/#uselazyquery) that would make it possible to define a query which is executed <i>when</i> the user wants to see the detailed information of a person.
280+
One possibility for this kind of situations is the hook function [useLazyQuery](https://www.apollographql.com/docs/react/api/react/useLazyQuery) that would make it possible to define a query which is executed <i>when</i> the user wants to see the detailed information of a person.
281281

282282
However, in our case we can stick to *useQuery* and use the option [skip](https://www.apollographql.com/docs/react/data/queries#skipoptional), which makes it possible to do the query only if a set condition is true.
283283

0 commit comments

Comments
 (0)