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

Function normalizeVersion

docs/app/utils/version-resolvers.ts:16–18  ·  view source on GitHub ↗
(v?: string)

Source from the content-addressed store, hash-verified

14}
15
16export function normalizeVersion(v?: string) {
17 return { version: isKnownVersion(v) ? v : getLatestVersion() }
18}
19
20export function useCurrentVersion() {
21 const data = useRouteLoaderData<typeof loader>("root")

Callers 6

loaderFunction · 0.90
keyForFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90
resolveVersionForLayoutFunction · 0.85

Calls 2

isKnownVersionFunction · 0.85
getLatestVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…