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

Function getComponentElement

packages/debugger/src/structure/walker.ts:166–176  ·  view source on GitHub ↗
(
    r: ComponentRegistry<TEl>,
    element_id: NodeID,
)

Source from the content-addressed store, hash-verified

164 */
165export
166const getComponentElement = <TEl extends object>(
167 r: ComponentRegistry<TEl>,
168 element_id: NodeID,
169): {name: string | undefined; id: NodeID; element: TEl} | undefined => {
170 let el_data = r.element_nodes.get(element_id)
171 if (el_data != null) return {
172 name: el_data.component.name,
173 id: el_data.component.id,
174 element: el_data.el,
175 }
176}
177
178export
179const findComponent = <TEl extends object>(

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…