MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / onClick

Function onClick

webapp/src/app/session/ErrorButtons.tsx:11–18  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

9 const [target, setTarget] = useState(0);
10
11 const onClick = (code: number) => {
12 setTarget(code);
13 startTransition(async () => {
14 const {error} = await triggerError(code);
15 if (error) handleError(error);
16 setTarget(0);
17 })
18 }
19
20 return (
21 <div className='flex gap-3'>

Callers 1

ErrorButtonsFunction · 0.70

Calls 2

triggerErrorFunction · 0.90
handleErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…