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

Function attachDevtoolsOverlay

packages/overlay/src/index.tsx:22–40  ·  view source on GitHub ↗
(props?: OverlayOptions)

Source from the content-addressed store, hash-verified

20}
21
22export function attachDevtoolsOverlay(props?: OverlayOptions): (() => void) {
23
24 /*
25 Only load the overlay after the page is loaded
26 */
27 let show = atom(false)
28 setTimeout(() => {
29 show.set(true)
30 })
31
32 return s.createRoot(dispose => {
33 s.createEffect(() => {
34 if (show()) {
35 <Overlay {...props} />
36 }
37 })
38 return dispose
39 })
40}
41
42const Overlay: s.Component<OverlayOptions> = props => {
43

Callers 1

DevtoolsOverlayFunction · 0.90

Calls 1

atomFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…