mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
docs: fix typo (#23912)
This commit is contained in:
parent
a037512562
commit
4cf1d5b3bc
@ -96,7 +96,7 @@ The first argument of [`useAsyncData`](/docs/api/composables/use-async-data) is
|
|||||||
const { data, error } = await useAsyncData('users', () => myGetFunction('users'))
|
const { data, error } = await useAsyncData('users', () => myGetFunction('users'))
|
||||||
```
|
```
|
||||||
|
|
||||||
Since the autogenerated key only takes into account the file and line where `useAsyncData` is invoked, is recommended to always create your own key to avoid unwanted behavior, if you are creating your own custom composable that is wrapping `useAsyncData`.
|
Since the autogenerated key only takes into account the file and line where `useAsyncData` is invoked, it is recommended to always create your own key to avoid unwanted behavior, if you are creating your own custom composable that is wrapping `useAsyncData`.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const id = ref(1)
|
const id = ref(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user