MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / warn

Function warn

graph-ui/src/adr/AdrWorkspace.tsx:89–89  ·  view source on GitHub ↗
(event: BeforeUnloadEvent)

Source from the content-addressed store, hash-verified

87 useEffect(() => {
88 if (!dirty) return;
89 const warn = (event: BeforeUnloadEvent) => { event.preventDefault(); event.returnValue = ''; };
90 window.addEventListener('beforeunload', warn);
91 return () => window.removeEventListener('beforeunload', warn);
92 }, [dirty]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected