Skip to content

Commit

Permalink
docs: fix minor typo in nuxt.md
Browse files Browse the repository at this point in the history
  • Loading branch information
idorenyinudoh authored Jan 7, 2024
1 parent 684a777 commit 246d44d
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
Expand Up @@ -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>
Expand Down

0 comments on commit 246d44d

Please sign in to comment.