(prevHash: string | null, nextHash: string)
| 71 | |
| 72 | /** Pure push decision, extracted for unit testing. */ |
| 73 | export function shouldPush(prevHash: string | null, nextHash: string): boolean { |
| 74 | return prevHash !== nextHash; |
| 75 | } |
| 76 | |
| 77 | /** A trailing debouncer: N rapid calls collapse into one invocation after `ms` of quiet. |
| 78 | * Returned function exposes `.cancel()` to clear a pending call (used on close). */ |
no outgoing calls
no test coverage detected