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

Function useLatest

graph-ui/src/adr/AdrWorkspace.tsx:155–157  ·  view source on GitHub ↗
(discard: boolean)

Source from the content-addressed store, hash-verified

153 preview: false, conflict: undefined, reviewing: false, error: '', notice: '' }));
154 };
155 const useLatest = (discard: boolean): void => setState(value => value.conflict ? ({ ...value,
156 base: value.conflict, content: discard ? value.conflict.content : value.content,
157 editing: !discard, conflict: undefined, reviewing: false, phase: 'ready', error: '', notice: discard ? '' : s.rebased }) : value);
158 const ready = state.phase === 'ready';
159 const documentVisible = !state.editing || state.preview;
160 /*

Callers 1

ProjectAdrWorkspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected