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

Function loader

docs/app/root.tsx:25–32  ·  view source on GitHub ↗
({ context, request, params }: Route.LoaderArgs)

Source from the content-addressed store, hash-verified

23import { normalizeVersion } from "./utils/version-resolvers"
24
25export async function loader({ context, request, params }: Route.LoaderArgs) {
26 const { lang, clientEnv } = context
27 const hints = getHints(request)
28 const { version } = params
29 const { version: normalizedVersion } = normalizeVersion(version)
30 const { domain } = getDomain(request)
31 return { lang, clientEnv, hints, version: normalizedVersion, domain }
32}
33
34export const links: LinksFunction = () => [{ rel: "stylesheet", href: tailwindcss }]
35

Callers

nothing calls this directly

Calls 2

normalizeVersionFunction · 0.90
getDomainFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…