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

Function onSolidDevDetect

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

Source from the content-addressed store, hash-verified

67}
68
69export function onSolidDevDetect(callback: () => void): void {
70 if (detectSolidDev()) {
71 queueMicrotask(callback)
72 } else {
73 interceptPropertySet(window,
74 SOLID_DEV_GLOBAL,
75 value => value && queueMicrotask(callback))
76 }
77}
78
79//
80// Solid DevTools Settler detection

Callers

nothing calls this directly

Calls 2

interceptPropertySetFunction · 0.90
detectSolidDevFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…