MCPcopy Create free account
hub / github.com/Roy3838/Observer / toggle

Function toggle

app/src/components/debug/PipDebugPanel.tsx:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 // Straight from the tap: no await before startStatusPip.
32 const toggle = () => {
33 setTapError('');
34 if (diag?.active) {
35 stopStatusPip().catch(e => setTapError(String(e)));
36 return;
37 }
38 startStatusPip(mode).catch(e => setTapError(e instanceof Error ? `${e.name}: ${e.message}` : String(e)));
39 };
40
41 return (
42 <div className="flex-1 min-w-0 flex flex-col gap-2">

Callers

nothing calls this directly

Calls 2

stopStatusPipFunction · 0.90
startStatusPipFunction · 0.90

Tested by

no test coverage detected