Skip to content

Commit

Permalink
docs: clarify setting cookies docs (#55149)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob authored Sep 11, 2023
1 parent 7d93808 commit 591d4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/02-app/02-api-reference/04-functions/cookies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Page() {

A method that takes a cookie name, value, and options and sets the outgoing request cookie.

> **Good to know**: `.set()` is only available in a [Server Action](/docs/app/building-your-application/data-fetching/forms-and-mutations) or [Route Handler](/docs/app/building-your-application/routing/route-handlers).
> **Good to know**: HTTP does not allow setting cookies after streaming starts, so you must use `.set()` in a [Server Action](/docs/app/building-your-application/data-fetching/forms-and-mutations) or [Route Handler](/docs/app/building-your-application/routing/route-handlers).
```js filename="app/actions.js"
'use server'
Expand Down

0 comments on commit 591d4e1

Please sign in to comment.