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

Function useFileVersion

ui/src/useFileVersion.ts:18–21  ·  view source on GitHub ↗
(url: string, enabled = true)

Source from the content-addressed store, hash-verified

16});
17
18export function useFileVersion(url: string, enabled = true) {
19 const query = useQuery({ ...fileVersionQuery(url), enabled, subscribed: enabled });
20 return query.data ?? null;
21}

Callers 2

FileViewerFunction · 0.90
PreviewPaneFunction · 0.90

Calls 2

useQueryFunction · 0.85
fileVersionQueryFunction · 0.85

Tested by

no test coverage detected