Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🍪 Understanding Cookie Behavior in Server Components #73001

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

themattmayfield
Copy link
Contributor

This is meant to add a bit more clarity of why we can't set cookies to the browser in a server component even if it's through a server action or route handler.

This is meant to add a bit more clarity of why we can't set cookies to the browser in a server component even if it's through a server action or route handler.
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Nov 20, 2024
@ijjk
Copy link
Member

ijjk commented Nov 20, 2024

Allow CI Workflow Run

  • approve CI run for commit: 9bbece1

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@themattmayfield themattmayfield marked this pull request as ready for review November 20, 2024 14:53
@themattmayfield themattmayfield marked this pull request as draft November 20, 2024 14:54
@themattmayfield themattmayfield marked this pull request as ready for review November 20, 2024 14:55
@themattmayfield themattmayfield changed the title Understanding Cookie Behavior in Server Components 🍪 Understanding Cookie Behavior in Server Components Nov 20, 2024
Copy link
Contributor

@delbaoliveira delbaoliveira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good explanation, thank you @themattmayfield 🙏🏼

@delbaoliveira delbaoliveira merged commit 8a69b95 into vercel:canary Nov 21, 2024
39 checks passed
wyattjoh pushed a commit that referenced this pull request Nov 28, 2024
This is meant to add a bit more clarity of why we can't set cookies to
the browser in a server component even if it's through a server action
or route handler.

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
@github-actions github-actions bot added the locked label Dec 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants