Skip to content

Commit

Permalink
docs: Note on await connection() in relative time docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Dec 23, 2024
1 parent a1a70cb commit 32dfcc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/pages/docs/usage/dates-times.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ async function FormattedDate({date}) {
}
```

Alternatively, if you don't want to use any caching, you can mark the component with [`await connection()`](https://nextjs.org/docs/app/api-reference/functions/connection) instead to render at request time.

</Details>

### `updateInterval` [#relative-times-update]
Expand Down

0 comments on commit 32dfcc2

Please sign in to comment.