MCPcopy Index your code
hub / github.com/srcbookdev/srcbook / clearError

Function clearError

packages/components/src/components/ui/heading.tsx:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

EditableH1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected