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

Function useStructure

packages/frontend/src/structure.tsx:329–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327const StructureContext = s.createContext<Module>()
328
329export function useStructure(): Module {
330 const ctx = s.useContext(StructureContext)
331 if (!ctx) throw new Error('Structure context not found')
332 return ctx
333}
334
335export function StructureView(): s.JSXElement {
336 const structure = createStructure()

Callers 4

SearchFunction · 0.85
ToggleModeFunction · 0.85
DisplayStructureTreeFunction · 0.85
OwnerPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…