Remove comment
This commit is contained in:
parent
fa24fb41a1
commit
a6f7f8ff49
@ -81,8 +81,6 @@ export function usePrepareTemplate(params: {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let isUnmounted = false;
|
|
||||||
|
|
||||||
const removeArray: (() => void)[] = [];
|
const removeArray: (() => void)[] = [];
|
||||||
|
|
||||||
scripts.forEach(script => {
|
scripts.forEach(script => {
|
||||||
@ -95,7 +93,6 @@ export function usePrepareTemplate(params: {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
isUnmounted = true;
|
|
||||||
removeArray.forEach(remove => remove());
|
removeArray.forEach(remove => remove());
|
||||||
};
|
};
|
||||||
}, [isReady]);
|
}, [isReady]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user