Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

docs: add note about fetching data on initial load #7120

Merged
merged 3 commits into from
Sep 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update use-async-data.md
  • Loading branch information
DamianGlowala authored Sep 1, 2022
commit 1f4fdf7759a66c2006a1a16664648fdd14fa4558
2 changes: 1 addition & 1 deletion docs/content/3.api/1.composables/use-async-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Under the hood, `lazy: false` uses `<Suspense>` to block the loading of the rout
By default, Nuxt waits until a `refresh` is finished before it can be executed again.

::alert{type=warning}
If you have not fetched data on the server (for example, with `server: false`), then the data _will not_ be fetched until hydration completes. This means even if you await `useAsyncData` on client-side, `data` will remain null within `<script setup>`.
If you have not fetched data on the server (for example, with `server: false`), then the data _will not_ be fetched until hydration completes. This means even if you await `useAsyncData` on the client side, `data` will remain `null` within `<script setup>`.
::

## Example
Expand Down