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

Function onSolidDevtoolsDetect

packages/shared/src/detect.ts:89–97  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

87}
88
89export function onSolidDevtoolsDetect(callback: () => void): void {
90 if (detectSolidDevtools()) {
91 queueMicrotask(callback)
92 } else {
93 interceptPropertySet(window as any,
94 SOLID_DEVTOOLS_GLOBAL,
95 value => value && queueMicrotask(callback))
96 }
97}

Callers

nothing calls this directly

Calls 2

interceptPropertySetFunction · 0.90
detectSolidDevtoolsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…