Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
docs: add link to ssrRef documentation from useAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 15, 2020
1 parent 4b82ec7 commit a072c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/en/ssrPromise.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ Under the hood, `ssrPromise` requires a key to ensure that the ref values match

<alert>

At the moment, an `ssrPromise` is only suitable for one-offs, unless you provide your own unique key. See [the `ssrRef` documentation](./ssrRef.md) for more information.
At the moment, an `ssrPromise` is only suitable for one-offs, unless you provide your own unique key. See [the `ssrRef` documentation](/ssrRef) for more information.

</alert>
2 changes: 2 additions & 0 deletions docs/content/en/useAsync.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ On the server, this helper will inline the result of the async call in your HTML

However, if the call hasn't been carried out on SSR (such as if you have navigated to the page after initial load), it returns a `null` ref that is filled with the result of the async call when it resolves.

<alert>Note that there are some gotchas when using `ssrRef` (which this helper does) - see [the ssrRef docs](/ssrRef) for more information.</alert>

```ts
import { defineComponent, useAsync, useContext } from '@nuxtjs/composition-api'

Expand Down

1 comment on commit a072c94

@vercel
Copy link

@vercel vercel bot commented on a072c94 Oct 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.