Skip to content

Commit 875bef7

Browse files
committed
Update TODO.md generation timestamp and refine comment in ShaeWorkerElement for clarity
1 parent 4990d5b commit 875bef7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

TODO.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# @spearwolf/shadow-objects-monorepo
33

4-
> _Generated by [scripts/makeTODO.mjs](scripts/makeTODO.mjs) at 2025-11-26T11:50:56.346Z_
4+
> _Generated by [scripts/makeTODO.mjs](scripts/makeTODO.mjs) at 2025-11-27T14:30:37.643Z_
55
66
This file contains an overview of all TODO, FIXME or XXX comments extracted from the source files of the packages.
77

@@ -24,5 +24,4 @@ This file contains an overview of all TODO, FIXME or XXX comments extracted from
2424
### TODOs
2525
| Filename | line # | TODO |
2626
|:------|:------:|:------|
27-
| [packages/shadow-objects/src/elements/ShaeWorkerElement.ts](packages/shadow-objects/src/elements/ShaeWorkerElement.ts#L200) | 200 | @test add tests for defer destroy |
2827

packages/shadow-objects/src/elements/ShaeWorkerElement.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ export class ShaeWorkerElement extends ShaeElement {
197197
this.shadowEnv.destroy();
198198
}
199199

200-
// TODO(test) add tests for defer destroy
201200
#deferDestroy() {
201+
// NOTE The destruction is halted until the next microtask—but a reconnect (adding the element back to the DOM before the next microtask)
202+
// cannot stop this process, and that's okay. Once destroyed, it's destroyed forever.
202203
if (!this.#shouldDestroy) {
203204
this.#shouldDestroy = true;
204205
queueMicrotask(() => {

0 commit comments

Comments
 (0)