Skip to content

Commit 69876f9

Browse files
fix: minor typos in part6d
1 parent 7d8fd29 commit 69876f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/6/en/part6d.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The current code for the application is in [GitHub](https://github.com/fullstack
155155

156156
Data is already successfully retrieved from the server. Next, we will make sure that the added and modified data is stored on the server. Let's start by adding new notes.
157157

158-
Let's make a function <i>addANote</i> to the file <i>requests.js</i> for saving new notes:
158+
Let's make a function <i>createNote</i> to the file <i>requests.js</i> for saving new notes:
159159

160160
```js
161161
import axios from 'axios'
@@ -351,7 +351,7 @@ Most React applications need not only a way to temporarily store the served data
351351

352352
### Exercises 6.19.-6.21.
353353

354-
Now let's make a new version of the anecdote application that uses the React Query library. Take [this project]((https://github.com/fullstack-hy2020/query-anecdotes)) as your starting point. The project has a ready-installed JSON Server, the operation of which has been slightly modified. Start the server with <i>npm run server</i>.
354+
Now let's make a new version of the anecdote application that uses the React Query library. Take [this project](https://github.com/fullstack-hy2020/query-anecdotes) as your starting point. The project has a ready-installed JSON Server, the operation of which has been slightly modified. Start the server with <i>npm run server</i>.
355355

356356
#### Exercise 6.19
357357

@@ -363,7 +363,7 @@ The application should work in such a way that if there are problems communicati
363363

364364
You can find [here](https://react-query-v3.tanstack.com/guides/queries) info how to detect the possible errors.
365365

366-
You can simulate a problem with the server by e.g. turning off the JSON Server. Please note that in a problem situation, the query is first in the state <i>isLoading</i> for a while, because if a requesst fails, React Query tries the request a few times before it states that the request is not successful. You can optionally specify that no retries are made:
366+
You can simulate a problem with the server by e.g. turning off the JSON Server. Please note that in a problem situation, the query is first in the state <i>isLoading</i> for a while, because if a request fails, React Query tries the request a few times before it states that the request is not successful. You can optionally specify that no retries are made:
367367

368368

369369
```js

0 commit comments

Comments
 (0)