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
// biome-ignore lint/correctness/useExhaustiveDependencies: We convert the attributes object to a string to see if it has changed, so it can't be detected by the rule
23
35
useEffect(()=>{
24
36
if(!url){
25
37
setStatus("idle");
@@ -34,6 +46,7 @@ export function useScript(url?: string): ScriptStatus {
34
46
script.src=url;
35
47
script.async=true;
36
48
script.setAttribute("data-status","loading");
49
+
37
50
document.body.appendChild(script);
38
51
39
52
// Ensure the status is loading
@@ -42,6 +55,14 @@ export function useScript(url?: string): ScriptStatus {
0 commit comments