export const destroyFns: Array<() => void> = [];
export const destroyAll = () => {
while (destroyFns.length) {
const close = destroyFns.pop();
if (close) {
close();
}
}
};
Created
February 12, 2021 12:24
-
-
Save qkreltms/4b3be68896bfce6c2f3d011e6fead2d0 to your computer and use it in GitHub Desktop.