Skip to content

Commit

Permalink
docs: fix minor typo in nuxt.md (#2548)
Browse files Browse the repository at this point in the history
idorenyinudoh authored Jan 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 684a777 commit a1a5d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/ssr/nuxt.md
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ And that's it, use your store as usual!

## Awaiting for actions in pages

As with `onServerPrefetch()`, you can call a store action within `asyncData()`. Given how `useASyncData()` works, **make sure to return a value**. This will allow Nuxt to skip running the action on the client side and reuse the value from the server.
As with `onServerPrefetch()`, you can call a store action within `asyncData()`. Given how `useAsyncData()` works, **make sure to return a value**. This will allow Nuxt to skip running the action on the client side and reuse the value from the server.

```vue{3-4}
<script setup>

0 comments on commit a1a5d49

Please sign in to comment.