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

Function ping

packages/shared/src/primitives.ts:176–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174
175 let timeoutId: ReturnType<typeof setTimeout> | undefined
176 const ping = (): void => {
177 setIsUpdated(true)
178 clearTimeout(timeoutId)
179 timeoutId = setTimeout(() => setIsUpdated(false), timeout)
180 }
181 onCleanup(() => clearTimeout(timeoutId))
182
183 return [isUpdated, ping]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…