MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / loadSourceDocName

Function loadSourceDocName

src/widgets/queue.tsx:207–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }, [hasIncrementalPowerup, plugin]);
206
207 // Reset view mode when switching to a new rem.
208 // The default view mode is computed once `remAndType` and the user setting
209 // have resolved, in the effect below — so we clear it here.
210 useEffect(() => {
211 setViewMode(undefined);
212 setSourceDocName(undefined);
213 }, [ctx?.remId]);
214
215 // Load source document name for highlights
216 useEffect(() => {
217 const loadSourceDocName = async () => {
218 if (remAndType?.type === 'pdf-highlight' || remAndType?.type === 'html-highlight') {

Callers 1

QueueComponentFunction · 0.85

Calls 1

safeRemTextToStringFunction · 0.90

Tested by

no test coverage detected