Skip to content

Commit 31a5a86

Browse files
authored
updated link in part8b.md
1 parent 2f06657 commit 31a5a86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/8/en/part8b.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ client.query({ query })
6565
ReactDOM.createRoot(document.getElementById('root')).render(<App />)
6666
```
6767

68-
The beginning of the code creates a new [client](https://www.apollographql.com/docs/react/get-started/#create-a-client) object, which is then used to send a query to the server:
68+
The beginning of the code creates a new [client](https://www.apollographql.com/docs/react/get-started#step-3-initialize-apolloclient) object, which is then used to send a query to the server:
6969

7070
```js
7171
client.query({ query })
@@ -78,7 +78,7 @@ The server's response is printed to the console:
7878

7979
![devtools shows allPersons array with 3 people](../../images/8/9a.png)
8080

81-
The application can communicate with a GraphQL server using the *client* object. The client can be made accessible for all components of the application by wrapping the <i>App</i> component with [ApolloProvider](https://www.apollographql.com/docs/react/get-started/#connect-your-client-to-react).
81+
The application can communicate with a GraphQL server using the *client* object. The client can be made accessible for all components of the application by wrapping the <i>App</i> component with [ApolloProvider](https://www.apollographql.com/docs/react/get-started#step-4-connect-your-client-to-react).
8282

8383
```js
8484
import ReactDOM from 'react-dom/client'
@@ -239,7 +239,7 @@ The *useQuery* hook is well-suited for situations where the query is done when t
239239

240240
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.
241241

242-
However, in our case we can stick to *useQuery* and use the option [skip](https://www.apollographql.com/docs/react/data/queries/#skip), which makes it possible to do the query only if a set condition is true.
242+
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.
243243

244244
The solution is as follows:
245245

0 commit comments

Comments
 (0)