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

Function lookupOwner

packages/debugger/src/main/utils.ts:214–223  ·  view source on GitHub ↗
(
    owner: Solid.Owner,
    predicate: (owner: Solid.Owner) => boolean,
)

Source from the content-addressed store, hash-verified

212}
213
214export function lookupOwner(
215 owner: Solid.Owner,
216 predicate: (owner: Solid.Owner) => boolean,
217): Solid.Owner | null {
218 do {
219 if (predicate(owner)) return owner
220 owner = owner.owner!
221 } while (owner.owner)
222 return null
223}
224
225/**
226 * Attach onCleanup callback to a reactive owner

Callers 2

debugOwnerComputationsFunction · 0.90
debugPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…