MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / handleClick

Function handleClick

packages/web/src/app/components/providerButton.tsx:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 const [isLoading, setIsLoading] = useState(false);
24
25 const handleClick = async () => {
26 setIsLoading(true);
27 try {
28 await onClick();
29 } finally {
30 setIsLoading(false);
31 }
32 };
33
34 return (
35 <LoadingButton

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected