-
Notifications
You must be signed in to change notification settings - Fork 426
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
fix(core): remove id from patch when using server actions #6751
fix(core): remove id from patch when using server actions #6751
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -149,7 +149,9 @@ export default defineConfig([ | |||
basePath: '/test', | |||
icon: SanityMonogram, | |||
// eslint-disable-next-line camelcase | |||
__internal_serverDocumentActions: {}, | |||
__internal_serverDocumentActions: { | |||
enabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't aware we had turned it off, so turning it on again here
0abd48f
to
7ad4196
Compare
No changes to documentation |
Component Testing Report Updated May 23, 2024 12:46 PM (UTC)
|
7ad4196
to
542f205
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Description
When using server actions, we forwarded the patch mutations as-is, but that means they would also include the document id. The doucment ID is alredy provided as part of the actions payload, and should not be part of the action's patch here.
What to review
The diff :)
Testing
This was already covered by a test that I've updated.
Notes for release
N/A