Skip to content

Commit ba4081f

Browse files
authored
fix(example): Fix typos
1 parent 7678970 commit ba4081f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/v3/fetch/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ export default {
5151
</script>
5252
```
5353

54-
If you go directly to [http://localhost:3000/](http://localhost:3000/), you will see directly the full list of posts which has been server-rendered.
54+
If you go directly to [http://localhost:3000/](http://localhost:3000/), you will see directly the full list of posts which has been **server-rendered** (great for SEO).
5555

5656
<img width="669" alt="Screenshot 2019-03-11 at 23 04 57" src="https://user-images.githubusercontent.com/904724/54161334-1f9e8400-4452-11e9-97bf-996a6e69d9db.png">
5757

5858

5959
> **INFO** 💡<br>
60-
> Nuxt will smartly detect what data you mutated inside `fetch` and optimised the JSON included in the returned HTML.
60+
> Nuxt will smartly detect what data you mutated inside `fetch` and optimises the JSON included in the returned HTML.
6161
6262
Now, let's add `pages/posts/_id.vue` page to display a post on `/posts/:id`.
6363

@@ -86,7 +86,7 @@ export default {
8686
</script>
8787
```
8888

89-
When navigating, you should now see "Loading post #..." on client-side, and no loading when refreshing a post.
89+
When navigating, you should now see `"Loading post #..."` on client-side, and no loading when refreshing a post (hard refresh on the browser).
9090

9191
<img width="669" alt="fetch-nuxt3" src="https://user-images.githubusercontent.com/904724/54161844-d3544380-4453-11e9-9586-7428597db40e.gif">
9292

@@ -95,7 +95,7 @@ When navigating, you should now see "Loading post #..." on client-side, and no l
9595
9696
## Caching
9797

98-
You can use the `keep-alive` directive in `<nuxt/>` and `<nuxt-child/>` component to saving `fetch` calls on pages you already visited:
98+
You can use `keep-alive` directive in `<nuxt/>` and `<nuxt-child/>` component to save `fetch` calls on pages you already visited:
9999

100100
`layouts/default.vue`
101101
```vue
@@ -139,7 +139,7 @@ export default {
139139
</script>
140140
```
141141

142-
The navigation to the same page will not trigger an HTTP request before 30 sec.
142+
The navigation to the same page will not call `fetch` if last `fetch` call was before 30 sec ago.
143143

144144
![fetch-keep-alive-nuxt3](https://user-images.githubusercontent.com/904724/54164405-c6881d80-445c-11e9-94e0-366406270874.gif)
145145

0 commit comments

Comments
 (0)