-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Try: Re-enable React StrictMode #61943
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +65 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
The e2e run with |
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.
Testing locally, I didn't see anything obvious. LGTM
Thanks @Mamaduka! I'd love to do some more thorough testing early next week, but if y'all are confident, go for it. |
As you can see, some e2e tests are failing when they're run in development and strict mode. This probably means we've subtle bugs in effects or anything that runs twice in |
Sounds familiar 😅 |
Technically, I guess we can merge this since it doesn’t affect production apps. Then create a separate tracking PR, where we try to fix each failure. Just like we do for React Compiler. What do you think? |
Yeah, since these bugs are actually already on trunk. I'm ok with merging. The downside is that some folks might start noticing the bugs in their dev environments and wonder what's happening. |
Actually, let's not merge this in 6.6 (unless we fix all the bugs). |
Sounds good. I’ll keep temp commit and we can use this as tracking PR. |
2a60f04
to
6af9be8
Compare
I started fixing the dev environment bugs. The "good news" is that some failures have related causes (e.g., #62053). |
6af9be8
to
e2ef5ae
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
bd472a3
to
d723b04
Compare
This is ready to be merged, but we will do it after this week's RC. It is probably not worth adding this as a minute change to WP 6.6. |
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.
Noting that at this time this needs to be rebased to take this fix into consideration otherwise there are PHP fatals.
I'm giving it a spin with a locally rebased branch to the latest trunk
.
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.
Do we also want to add strict mode to the reusable blocks?
<ImportDropdown onUpload={ showNotice } /> |
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.
Tested all editors, working pretty well. Shipping after the next release sounds sensible and will give us a good window to fix any incoming problems 👍
So, just rebase on top of the latest trunk, or are there any additional fixes required? |
Yes, just rebasing fixes it. |
d791fb6
to
50117db
Compare
Flaky tests detected in 50117db. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9317959370
|
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.
LGTM 👍. I'd expect to see warnings once this is merged but better sooner than later 😆.
…dd/on-async-directives * 'trunk' of https://github.com/WordPress/gutenberg: (72 commits) Top toolbar: fix half a pixel artifacting of the bottom border. (#62225) Fix UI order for theme.json spacing sizes (#62199) Chore: Simplify a padding style on global styles. (#62291) Editor: Avoid remounts of `DocumentBar` (#62214) Add `default-spacing-sizes` and `default-font-sizes` options for classic themes (#62252) Editor: Cleanup styles and classnames (#62237) Scripts: Pin the @wordpress/scripts version to a version supported by WP 6.5 (#62234) Documentation: Better changelogs for the JSX transform upgrade (#62265) Chore: Simplify a padding style on dataviews. (#62276) MediaUpload: Remove dialog markup on close (#62168) Tabs: Prevent accidental overflow in indicator (#61979) Make edit site pagination buttons accessibly disabled. (#62267) Fix: Remove unused code from dataviews styles. (#62275) Re-enable React StrictMode (#61943) Inserter: Return the same items when the state and parameters don't change (#62263) Update instances of text-wrap: pretty to fall back to balance (#62233) Update: Slotfill documentation samples (links, code, and rephrase). (#62271) Try: Fix mover positioning. (#62226) [Mobile] - Image corrector - Check the path extension is a valid one (#62190) Update: Block styles documentation. ...
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: kevin940726 <[email protected]> Co-authored-by: ellatrix <[email protected]>
It looks like this change caused a regression in the customizer's widget editor (reported in #62898). Just sharing here in case anyone has an idea for how to fix it? I wasn't sure if it was safe to revert the |
Strangely, two commands seem to no longer work when |
What?
PR re-enable React StrictMode for editors. It was removed in #47701 and never restored.
Why?
Bugs Discovered
Testing Instructions
Testing Instructions for Keyboard
Same.