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

Function onOwnerDispose

packages/debugger/src/main/utils.ts:274–282  ·  view source on GitHub ↗
(
    owner: Solid.Owner,
    fn: VoidFunction,
    prepend = false,
    symbol?: symbol,
)

Source from the content-addressed store, hash-verified

272 * Listen to when the owner is disposed. (not on cleanup)
273 */
274export function onOwnerDispose(
275 owner: Solid.Owner,
276 fn: VoidFunction,
277 prepend = false,
278 symbol?: symbol,
279): VoidFunction {
280 if (isSolidRoot(owner)) return onOwnerCleanup(owner, fn, prepend, symbol)
281 return onParentCleanup(owner, fn, prepend, symbol)
282}

Callers 1

inspectOwnerIdFunction · 0.90

Calls 3

isSolidRootFunction · 0.85
onOwnerCleanupFunction · 0.85
onParentCleanupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…