MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / onChange

Function onChange

e2e/viewer/src/App.tsx:45–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 const [hash, setHash] = useState(window.location.hash);
44 useEffect(() => {
45 const onChange = () => setHash(window.location.hash);
46 window.addEventListener("hashchange", onChange);
47 return () => window.removeEventListener("hashchange", onChange);
48 }, []);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected