()
| 26 | const [error, _setError] = useState<string | null>(null); |
| 27 | |
| 28 | function clearError() { |
| 29 | _setError(null); |
| 30 | if (timeoutRef.current) { |
| 31 | clearTimeout(timeoutRef.current); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | function setError(error: string) { |
| 36 | if (timeoutRef.current) { |