From 50b79324b2002e9decc437fb3eaae3a3737a876c Mon Sep 17 00:00:00 2001 From: Kyle <450516+kylekz@users.noreply.github.com> Date: Tue, 13 May 2025 02:41:10 +1200 Subject: [PATCH] docs: add note regarding cookie caching and RSC --- docs/content/docs/integrations/next.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/docs/integrations/next.mdx b/docs/content/docs/integrations/next.mdx index eed024edf0..f6cbe4c70d 100644 --- a/docs/content/docs/integrations/next.mdx +++ b/docs/content/docs/integrations/next.mdx @@ -91,6 +91,8 @@ export async function ServerComponent() { } ``` +As RSCs cannot set cookies, the [cookie cache](/docs/concepts/session-management#cookie-cache) will not be refreshed until the server is interacted with from the client via Server Actions or Route Handlers. + ### Server Action Cookies When you call a function that needs to set cookies, like `signInEmail` or `signUpEmail` in a server action, cookies won’t be set. This is because server actions need to use the `cookies` helper from Next.js to set cookies.