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

Function buildSectionedTo

docs/app/utils/path-builders.ts:37–45  ·  view source on GitHub ↗
(version: string, slug: string)

Source from the content-addressed store, hash-verified

35}
36
37export function buildSectionedTo(version: string, slug: string) {
38 const { section, subsection, filename } = splitSlug(slug)
39 return href("/:version/:section?/:subsection?/:filename", {
40 version,
41 section,
42 subsection,
43 filename,
44 })
45}

Callers 1

SectionItemFunction · 0.90

Calls 1

splitSlugFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…