Skip to content

Next RSC: cookies().set() in validateRequest #1540

Answered by pilcrowonpaper
rwieruch asked this question in Help
Discussion options

You must be logged in to vote

The cookies().set() throws an error when rendering the server component, which is patched by adding a try/catch

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@rwieruch
Comment options

@pilcrowonpaper
Comment options

@rwieruch
Comment options

@pilcrowonpaper
Comment options

@theorib
Comment options

Answer selected by rwieruch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants