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

Function detectSolid

packages/shared/src/detect.ts:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22*/
23
24export function detectSolid(): Promise<boolean> {
25 if (document.readyState === 'complete') {
26 return check_for_solid()
27 } else {
28 return new Promise((resolve) => {
29 window.addEventListener('load', () => {
30 check_for_solid().then(resolve)
31 })
32 })
33 }
34}
35
36// initial version by @aquaductape
37export async function check_for_solid(): Promise<boolean> {

Callers

nothing calls this directly

Calls 1

check_for_solidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…