Skip to content

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

Answered by pilcrowOnPaper
rwieruch asked this question in Q&A
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
Q&A
Labels
None yet
4 participants