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

Function onPopState

graph-ui/src/App.tsx:46–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 /* Sync state when the user navigates with the browser back/forward buttons. */
45 useEffect(() => {
46 const onPopState = () => setRoute(readRoute());
47 window.addEventListener("popstate", onPopState);
48 return () => window.removeEventListener("popstate", onPopState);
49 }, []);

Callers

nothing calls this directly

Calls 1

readRouteFunction · 0.85

Tested by

no test coverage detected