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

Function setReading

graph-ui/src/system/useSystemPoll.ts:17–22  ·  view source on GitHub ↗
(update: SystemReading<T> | ((previous: SystemReading<T>) => SystemReading<T>))

Source from the content-addressed store, hash-verified

15
16 useEffect(() => {
17 const setReading = (update: SystemReading<T> | ((previous: SystemReading<T>) => SystemReading<T>)) => {
18 setOwned(previous => {
19 const current = previous.owner === read ? previous.reading : { data: null, updatedAt: null, error: null, loading: false };
20 return { owner: read, reading: typeof update === 'function' ? update(current) : update };
21 });
22 };
23 let disposed = false;
24 let generation = 0;
25 let timer: ReturnType<typeof setTimeout> | undefined;

Callers 15

useOrganicLayoutFunction · 0.85
acceptFunction · 0.85
ChangeAnalysisWorkspaceFunction · 0.85
SelectionImpactWidgetFunction · 0.85
readFunction · 0.85
readFunction · 0.85
SystemArchitectureFunction · 0.85
pollFunction · 0.85
failFunction · 0.85
SourceEvidenceDrawerFunction · 0.85
useRepositoryGuideFunction · 0.85
ContainerMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected