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

Fields: Fix React Compiler mutation errors #66464

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Oct 25, 2024

What?

Resolves a few straightforward violations of the React Compiler anti-mutation rules.

Why?

To resolve a few errors related to mutations in #61788.

How?

We're renaming some refs, so their name ends inRef. This is necessary for the enableTreatRefLikeIdentifiersAsRefs config flag of React Compiler to work well.

Testing Instructions

Shouldn't be necessary. This is a code style change.

Testing Instructions for Keyboard

Same

Screenshots or screencast

@tyxla tyxla added the [Type] Code Quality Issues or PRs that relate to code quality label Oct 25, 2024
@tyxla tyxla requested review from Mamaduka, gigitux and a team October 25, 2024 11:06
@tyxla tyxla self-assigned this Oct 25, 2024
Copy link

github-actions bot commented Oct 25, 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: tyxla <[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.

Nice! :shipit:

@tyxla tyxla enabled auto-merge (squash) October 25, 2024 11:37
@tyxla tyxla merged commit b2d692c into trunk Oct 25, 2024
70 checks passed
@tyxla tyxla deleted the fix/fields-react-compiler-errors branch October 25, 2024 11:41
@github-actions github-actions bot added this to the Gutenberg 19.6 milestone Oct 25, 2024
@cbravobernal cbravobernal added the [Package] DataViews /packages/dataviews label Oct 30, 2024
karthick-murugan pushed a commit to karthick-murugan/gutenberg that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] DataViews /packages/dataviews [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants