docs: fix typo (#23912)

This commit is contained in:
Jeffrey GONZALES 2023-10-25 02:35:16 +02:00 committed by GitHub
parent a037512562
commit 4cf1d5b3bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)