MCPcopy Create free account
hub / github.com/ShipSecAI/studio / toggleHost

Function toggleHost

frontend/src/components/timeline/NetworkPanel.tsx:481–491  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

479 : null;
480
481 const toggleHost = (host: string) => {
482 setExpandedHosts((prev) => {
483 const next = new Set(prev);
484 if (next.has(host)) {
485 next.delete(host);
486 } else {
487 next.add(host);
488 }
489 return next;
490 });
491 };
492
493 // Auto-expand all hosts on first render
494 useEffect(() => {

Callers 1

NetworkPanelFunction · 0.85

Calls 2

hasMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected