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

Function stored

graph-ui/src/browser-ai/agent-preferences.ts:103–103  ·  view source on GitHub ↗
(event: StorageEvent)

Source from the content-addressed store, hash-verified

101export function useAgentPreferences(): { preferences: Readonly<AgentPreferences>; setPreferences: typeof setAgentPreferences } {
102 const subscribe = useCallback((listener: () => void) => {
103 const stored = (event: StorageEvent) => { if (event.key === null || event.key === AGENT_PREFERENCES_KEY) listener(); };
104 window.addEventListener(CHANGE, listener);
105 window.addEventListener('storage', stored);
106 return () => { window.removeEventListener(CHANGE, listener); window.removeEventListener('storage', stored); };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected