MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / handleStorage

Function handleStorage

src/features/threads/hooks/useThreadStorage.ts:47–51  ·  view source on GitHub ↗
(event: StorageEvent)

Source from the content-addressed store, hash-verified

45 }
46 customNamesRef.current = loadCustomNames();
47 const handleStorage = (event: StorageEvent) => {
48 if (event.key === STORAGE_KEY_CUSTOM_NAMES) {
49 customNamesRef.current = loadCustomNames();
50 }
51 };
52 window.addEventListener("storage", handleStorage);
53 return () => window.removeEventListener("storage", handleStorage);
54 }, []);

Callers

nothing calls this directly

Calls 2

loadCustomNamesFunction · 0.90
loadPinnedThreadsFunction · 0.90

Tested by

no test coverage detected