MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onChange

Function onChange

src/ink/hooks/use-animation-frame.ts:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 let lastUpdate = clock.now()
43
44 const onChange = (): void => {
45 const now = clock.now()
46 if (now - lastUpdate >= intervalMs!) {
47 lastUpdate = now
48 setTime(now)
49 }
50 }
51
52 // keepAlive: true — visible animations drive the clock
53 return clock.subscribe(onChange, true)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected