Skip to content

Commit

Permalink
fix: mitigates the infinite loading issue while the root cause is bei…
Browse files Browse the repository at this point in the history
…ng investigated

Addresses #710 #714

PR: #714
  • Loading branch information
rakannimer committed Sep 27, 2024
1 parent a8d9ac6 commit 9957ab7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/hooks/useLoadScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,5 @@ export function useLoadScript(
if (!foundScript) {
document.head.append(script);
}

return () => {
script.removeEventListener("load", onLoadWithMarker);

if (onError) {
script.removeEventListener("error", onError);
}
};
}, []);
}

0 comments on commit 9957ab7

Please sign in to comment.