Skip to content

Commit

Permalink
infinity loop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Nov 27, 2023
1 parent 3ac291f commit fbf14c2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ const useBootstrapComponentDynamicImport = (importFiles, {
const handleEvent = async (e) => {
e.preventDefault();

if (filesLoaded || filesLoading) {
return;
}

await handleComponentLoad();

const { delegateTarget, type } = e;
Expand Down

0 comments on commit fbf14c2

Please sign in to comment.