Apply suggestions from code review

Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
This commit is contained in:
Julien Huang 2024-10-13 22:33:55 +02:00 committed by GitHub
parent 293ea09866
commit 7c2bb85054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export default defineNuxtComponent({
``` ```
::warning ::warning
Data from `useAsyncData` is only set once in the `setup` hook of your component. This means `refreshNuxtData` will not work with `asyncData`. If you need to re-run `useAsyncData`, you can change it with a `method` of the Option API. Data from `useAsyncData` is only set once in the `setup` hook of your component. This means `refreshNuxtData` will not work with `asyncData`. If you need to re-run `useAsyncData`, you can change it with a `method` of the Options API.
:: ::
## `head()` ## `head()`

View File

@ -13,7 +13,7 @@ links:
:: ::
::warning ::warning
`refreshNuxtData` only works with composition API. `asyncData` hook from the Options API does not work with `refreshNuxtData`. `refreshNuxtData` only works with Composition API. `asyncData` hook from the Options API does not work with `refreshNuxtData`.
:: ::
## Type ## Type