MCPcopy Create free account
hub / github.com/arctic-cli/interface / useRouteData

Function useRouteData

packages/arctic/src/cli/cmd/tui/context/route.tsx:47–50  ·  view source on GitHub ↗
(type: T)

Source from the content-addressed store, hash-verified

45export type RouteContext = ReturnType<typeof useRoute>
46
47export function useRouteData<T extends Route["type"]>(type: T) {
48 const route = useRoute()
49 return route.data as Extract<Route, { type: typeof type }>
50}

Callers 4

OnboardingFunction · 0.90
HomeFunction · 0.90
HeaderFunction · 0.90
SessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected