()
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected