From 28d3bd7dda82032878ed7d278142951c10cecc5d Mon Sep 17 00:00:00 2001 From: Seghir Nadir Date: Tue, 18 Aug 2020 12:32:40 +0100 Subject: [PATCH] remove suspense polyfill (https://github.com/woocommerce/woocommerce-blocks/pull/3015) --- .../assets/js/base/utils/render-frontend.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/base/utils/render-frontend.js b/plugins/woocommerce-blocks/assets/js/base/utils/render-frontend.js index 1d35ef308d0..8f34d4a71e8 100644 --- a/plugins/woocommerce-blocks/assets/js/base/utils/render-frontend.js +++ b/plugins/woocommerce-blocks/assets/js/base/utils/render-frontend.js @@ -43,13 +43,6 @@ const renderBlockInContainers = ( { return; } - // @todo Remove Suspense compatibility fix once WP 5.2 is no longer supported. - // If Suspense is not available (WP 5.2), use a noop component instead. - const noopComponent = ( { children } ) => { - return <>{ children }; - }; - const SuspenseComponent = Suspense || noopComponent; - // Use Array.forEach for IE11 compatibility. Array.prototype.forEach.call( containers, ( el, i ) => { const props = getProps( el, i ); @@ -62,11 +55,9 @@ const renderBlockInContainers = ( { render( - } - > + }> - + , el );