()
| 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] |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…