MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / cleanupRoot

Function cleanupRoot

packages/debugger/src/main/roots.ts:41–48  ·  view source on GitHub ↗
(root: Solid.Root)

Source from the content-addressed store, hash-verified

39}
40
41function 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.

Callers 1

attachDebuggerFunction · 0.85

Calls 2

getSdtIdFunction · 0.90
changeRootAttachmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…