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
Core Data: Pass the 'options' argument to data action shortcuts #57383
Conversation
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
Flaky tests detected in 4feb14b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7330840013
|
result[ getMethodName( kind, name, 'save' ) ] = ( record, options ) => | ||
actions.saveEntityRecord( kind, name, record, options ); |
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.
The saveEntityRecord
receives a record
, not a primary key
.
Thank you, Riad! |
What?
PR allows passing the
options
argument to the auto-generated action shortcuts likesaveUser
anddeleteUser
.Why?
The shortcuts should accept the same arguments as the general actions.
Testing Instructions
trunk
.Code examples