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

Function getComponentRefreshNode

packages/debugger/src/main/utils.ts:169–176  ·  view source on GitHub ↗
(owner: Readonly<Solid.Component>)

Source from the content-addressed store, hash-verified

167}
168
169export function getComponentRefreshNode(owner: Readonly<Solid.Component>): Solid.Memo | null {
170 const {owned} = owner
171 let refresh: Solid.Owner
172 if (owned && owned.length === 1 && markOwnerType((refresh = owned[0]!)) === NodeType.Refresh) {
173 return refresh as Solid.Memo
174 }
175 return null
176}
177
178
179export function resolveElements(value: unknown): HTMLElement[] | null {

Callers 1

mapOwnerFunction · 0.90

Calls 1

markOwnerTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…