MCPcopy Create free account
hub / github.com/TanStack/devtools / Panel

Function Panel

packages/devtools-utils/src/solid/panel.tsx:12–25  ·  view source on GitHub ↗
(props: TComponentProps)

Source from the content-addressed store, hash-verified

10 CoreClass: ClassType,
11) {
12 function Panel(props: TComponentProps) {
13 let devToolRef: HTMLDivElement | undefined
14 const [devtools] = createSignal(new CoreClass())
15 onMount(() => {
16 if (devToolRef) {
17 devtools().mount(devToolRef, props)
18 }
19 onCleanup(() => {
20 devtools().unmount()
21 })
22 })
23
24 return <div style={{ height: '100%' }} ref={devToolRef} />
25 }
26
27 function NoOpPanel(_props: TComponentProps) {
28 return <></>

Callers

nothing calls this directly

Calls 3

devtoolsFunction · 0.85
mountMethod · 0.45
unmountMethod · 0.45

Tested by

no test coverage detected