Skip to content

Fix re-renders caused by getEntityRecordsPermissions after #67667#67770

Merged
Mamaduka merged 2 commits intotrunkfrom
fix/regression-in-entity-record-permissions
Dec 10, 2024
Merged

Fix re-renders caused by getEntityRecordsPermissions after #67667#67770
Mamaduka merged 2 commits intotrunkfrom
fix/regression-in-entity-record-permissions

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
@github-actions
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
@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