We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461ab81 commit e5f132fCopy full SHA for e5f132f
docs/usage.md
@@ -5,8 +5,8 @@
5
**`asyncData`**
6
7
```js
8
-async asyncData({ app }) {
9
- const ip = await app.$axios.$get('http://icanhazip.com')
+async asyncData({ $axios }) {
+ const ip = await $axios.$get('http://icanhazip.com')
10
return { ip }
11
}
12
```
@@ -22,16 +22,7 @@ methods: {
22
23
24
25
-### Store `nuxtServerInit`
26
-
27
-```js
28
-async nuxtServerInit ({ commit }, { app }) {
29
30
- commit('SET_IP', ip)
31
-}
32
-```
33
34
-### Store actions
+### Store actions (including `nuxtServerInit`)
35
36
37
// In store
0 commit comments