-
Notifications
You must be signed in to change notification settings - Fork 221
Fix Mini-Cart block conflict with Page Optimize and Product Bundles #9585
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +120 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
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! 🚀
This tests as described and I can confirm I am not seeing the error in Woo Core 7.7 and Woo Blocks 10.0.5 (via the provided zip).
Note: I see there's conversation in p1684930869348989-slack-C02FL3X7KR6 around the best approach for having a dedicated patch. Since this is urgent, I'll approve and we can follow up, if needed.
Closing in favor of #9586. |
Fixes #9584.
This PR refactors how we lazy-load Mini-Cart scripts, so we check if that script has already been loaded in a Page Optimize bundle. #9584 is not reproducible in the latest version of WC Blocks, as the dependency that was causing an issue was removed in #9251. However, I think it's a good idea to merge this PR into
trunk
instead ofrelease/10.0
, as the extra check can be beneficial to prevent potential future conflicts with Page Optimize.Testing
User Facing Testing
The issue is only reproducible in WC core 7.7 or WC Blocks 10.0.x. So please test with WC core 7.7 and this zip. (You can alternatively checkout the branch
release/10.0.0
and cherry-pick the commit included in this PR)WooCommerce Visibility
Changelog