(root: Solid.Root)
| 39 | } |
| 40 | |
| 41 | function cleanupRoot(root: Solid.Root): void { |
| 42 | const rootId = getSdtId(root, ObjectType.Owner) |
| 43 | root.isDisposed = true |
| 44 | changeRootAttachment(root, null) |
| 45 | |
| 46 | const wasTarcked = RootMap.delete(rootId) |
| 47 | if (wasTarcked) OnRootRemoved?.(rootId) |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * For switching what owner sub-roots are attached to. |
no test coverage detected
searching dependent graphs…