From 32dfcc21ed5be8a1f75c1f1ddcab247b6bf43692 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Mon, 23 Dec 2024 10:36:54 +0100 Subject: [PATCH] docs: Note on `await connection()` in relative time docs --- docs/src/pages/docs/usage/dates-times.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/pages/docs/usage/dates-times.mdx b/docs/src/pages/docs/usage/dates-times.mdx index 7155919ae..8739d33b7 100644 --- a/docs/src/pages/docs/usage/dates-times.mdx +++ b/docs/src/pages/docs/usage/dates-times.mdx @@ -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. + ### `updateInterval` [#relative-times-update]