MCPcopy Create free account
hub / github.com/alphaXiv/OpenResearch / useRef

Function useRef

ui/tests/workspace.test.mjs:50–50  ·  view source on GitHub ↗
(initial)

Source from the content-addressed store, hash-verified

48 }];
49 },
50 useRef(initial) { const index = cursor++; slots[index] ??= { current: initial }; return slots[index]; },
51 useCallback(callback, deps) {
52 const index = cursor++;
53 if (!same(slots[index]?.deps, deps)) slots[index] = { callback, deps };

Callers 15

useLatexCompileFunction · 0.50
RemoteOverlayFunction · 0.50
RuntimeRootFunction · 0.50
useOrxEventStreamFunction · 0.50
useOrxEventsFunction · 0.50
useStableStringMapFunction · 0.50
AppFunction · 0.50
useOverleafSyncFunction · 0.50
useProjectWorkspaceFunction · 0.50
OverleafButtonFunction · 0.50
PlanStripFunction · 0.50
useDialogFocusFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected