From fbf14c248a635dc42ee29b7ce0875ab14f1f0e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Ste=CC=A8pien=CC=81?= Date: Mon, 27 Nov 2023 01:04:28 +0100 Subject: [PATCH] infinity loop fix --- .../dynamicImports/useBootstrapComponentDynamicImport.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_dev/js/utils/dynamicImports/useBootstrapComponentDynamicImport.js b/_dev/js/utils/dynamicImports/useBootstrapComponentDynamicImport.js index 7a01d469..c32698ec 100644 --- a/_dev/js/utils/dynamicImports/useBootstrapComponentDynamicImport.js +++ b/_dev/js/utils/dynamicImports/useBootstrapComponentDynamicImport.js @@ -155,6 +155,10 @@ const useBootstrapComponentDynamicImport = (importFiles, { const handleEvent = async (e) => { e.preventDefault(); + if (filesLoaded || filesLoading) { + return; + } + await handleComponentLoad(); const { delegateTarget, type } = e;