You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
In #5866 and #7367, we worked around the WordPress.com issue. We know for sure that WordPress.com code is monkeypatching some wp.data functions, mainly replaceBlocks and replaceInnerBlocks, and causing them to have an unstanble reference, which throws useForcedLayout into an infinite loop.
What we don't know, is why this only happens in Cart block and not Checkout block, and why it went away and returned. From my understanding, something in our code is shortcutting useForcedLayout early in Checkout, and did so for Cart, but surfaced again.
It would be good to understand this so if we can't fix it in WordPress.com, we have better mitigation.
It should be noted that, like #6718, this is just a temporary fix for a single place, it is very likely that the monkeypatching code will touch several places in our code base, and we will need to fix everyone of them, a better solution would be to fix it from the root.
The text was updated successfully, but these errors were encountered:
In #5866 and #7367, we worked around the WordPress.com issue. We know for sure that WordPress.com code is monkeypatching some wp.data functions, mainly replaceBlocks and replaceInnerBlocks, and causing them to have an unstanble reference, which throws
useForcedLayout
into an infinite loop.What we don't know, is why this only happens in Cart block and not Checkout block, and why it went away and returned. From my understanding, something in our code is shortcutting
useForcedLayout
early in Checkout, and did so for Cart, but surfaced again.It would be good to understand this so if we can't fix it in WordPress.com, we have better mitigation.
It should be noted that, like #6718, this is just a temporary fix for a single place, it is very likely that the monkeypatching code will touch several places in our code base, and we will need to fix everyone of them, a better solution would be to fix it from the root.
The text was updated successfully, but these errors were encountered: