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

WP 6.2 compatibility: check upgrade to React 18 guide #19859

Closed
igorschoester opened this issue Feb 13, 2023 · 1 comment
Closed

WP 6.2 compatibility: check upgrade to React 18 guide #19859

igorschoester opened this issue Feb 13, 2023 · 1 comment
Assignees

Comments

@igorschoester
Copy link
Member

In WP 6.2 we get React 18.0.2 instead of 17.0.2.
After any fixes, please make sure it still works in React 17 too (i.e. WP 6.1 or WP 6.0).

Have a look at How to Upgrade to React 18 and determine if we need more fixes other than #19856 and #19858
In particular the Automatic Batching might cause some unexpected problems?

Install WP 6.2 steps

  • Install and activate the WordPress Beta Tester plugin
  • Go to Tools > Beta testing
  • Change the update channel to Bleeding edge and the stream to Beta/RC Only
  • Go to Dashboard > Updates and update to 6.2-beta1 (at the time of writing)
  • Add/ensure the following constants are set as follows in your wp-config.php. Please do this instead of the WP_DEBUG set to false.
if ( ! defined( 'WP_DEBUG' ) ) {
    define( 'WP_DEBUG', true );
}
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
    define( 'SCRIPT_DEBUG', true );
}
if ( ! defined( 'YOAST_ENVIRONMENT' ) ) {
    define( 'YOAST_ENVIRONMENT', 'development' );
}
@igorschoester igorschoester self-assigned this Feb 15, 2023
@igorschoester
Copy link
Member Author

Things seem fine! Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant