Skip to content
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 re-renders caused by getEntityRecordsPermissions after #67667 #67770

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

manzoorwanijk
Copy link
Member

What?

Address the regression mentioned in #67667 (comment)

Why?

Passing an array of string of ids when not needed caused a slight performance issue due to re-renders.

How?

By updating the signature of getEntityRecordsPermissions to allow array of strings

Testing Instructions

  • Just verify that CI is happy.

Testing Instructions for Keyboard

Screenshots or screencast

Before After

@manzoorwanijk manzoorwanijk added [Type] Performance Related to performance efforts [Package] Core data /packages/core-data labels Dec 10, 2024
@manzoorwanijk manzoorwanijk self-assigned this Dec 10, 2024
Copy link

github-actions bot commented Dec 10, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: manzoorwanijk <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, @manzoorwanijk!

@Mamaduka Mamaduka merged commit 4867dfc into trunk Dec 10, 2024
69 of 71 checks passed
@Mamaduka Mamaduka deleted the fix/regression-in-entity-record-permissions branch December 10, 2024 05:18
@github-actions github-actions bot added this to the Gutenberg 19.9 milestone Dec 10, 2024
yogeshbhutkar pushed a commit to yogeshbhutkar/gutenberg that referenced this pull request Dec 18, 2024
…s#67667 (WordPress#67770)

* Update getEntityRecordsPermissions signature to allow string ids
* Fix regression caused in WordPress#67667

Co-authored-by: manzoorwanijk <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Core data /packages/core-data [Type] Performance Related to performance efforts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants