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: 1 comment 4 replies

Comment options

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

@pilcrowOnPaper
Comment options

@rwieruch
Comment options

@pilcrowOnPaper
Comment options

Answer selected by rwieruch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants