Fix components count

commit_hash:d23dc2ab50375257e2f3a6521dcebe85773985d7
This commit is contained in:
4eb0da
2024-12-13 16:53:53 +03:00
parent c1764b3488
commit 0381a0359f
+2 -1
View File
@@ -151,10 +151,11 @@
type: 'mount' | 'destroy';
node: HTMLElement;
}) {
++count;
if (event.type === 'mount') {
++count;
components.set(event.node, event);
} else if (event.type === 'destroy') {
--count;
components.delete(event.node);
}