Skip to content

Commit 32dfcc2

Browse files
committed
docs: Note on await connection() in relative time docs
1 parent a1a70cb commit 32dfcc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/pages/docs/usage/dates-times.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ async function FormattedDate({date}) {
138138
}
139139
```
140140

141+
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.
142+
141143
</Details>
142144

143145
### `updateInterval` [#relative-times-update]

0 commit comments

Comments
 (0)