MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / getContent

Function getContent

docs/app/utils/load-content.ts:18–25  ·  view source on GitHub ↗
(version: Version)

Source from the content-addressed store, hash-verified

16}
17
18export async function getContent(version: Version) {
19 const contentForVersion = content.get(version)
20 if (!contentForVersion) {
21 throw new Error(`Content for version "${version}" could not be retrieved.`)
22 }
23 const { allPages, allSections } = await loadContentCollections(version)
24 return { allPages, allSections }
25}

Callers 4

createSidebarTreeFunction · 0.90
renderLlmsTxtFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90

Calls 1

loadContentCollectionsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…