MCPcopy Index your code
hub / github.com/TanStack/router / createRoute

Function createRoute

packages/solid-router/src/route.tsx:290–369  ·  view source on GitHub ↗
(
  options: RouteOptions<
    TRegister,
    TParentRoute,
    TId,
    TCustomId,
    TFullPath,
    TPath,
    TSearchValidator,
    TParams,
    TLoaderDeps,
    TLoaderFn,
    AnyContext,
    TRouteContextFn,
    TBeforeLoadFn,
    TSSR,
    THandlers
  >,
)

Source from the content-addressed store, hash-verified

288}
289
290export function createRoute<
291 TRegister = unknown,
292 TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute,
293 TPath extends RouteConstraints['TPath'] = '/',
294 TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<
295 TParentRoute,
296 TPath
297 >,
298 TCustomId extends RouteConstraints['TCustomId'] = string,
299 TId extends RouteConstraints['TId'] = ResolveId<
300 TParentRoute,
301 TCustomId,
302 TPath
303 >,
304 TSearchValidator = undefined,
305 TParams = ResolveParams<TPath>,
306 TRouteContextFn = AnyContext,
307 TBeforeLoadFn = AnyContext,
308 TLoaderDeps extends Record<string, any> = {},
309 TLoaderFn = undefined,
310 TChildren = unknown,
311 TSSR = unknown,
312 THandlers = undefined,
313>(
314 options: RouteOptions<
315 TRegister,
316 TParentRoute,
317 TId,
318 TCustomId,
319 TFullPath,
320 TPath,
321 TSearchValidator,
322 TParams,
323 TLoaderDeps,
324 TLoaderFn,
325 AnyContext,
326 TRouteContextFn,
327 TBeforeLoadFn,
328 TSSR,
329 THandlers
330 >,
331): Route<
332 TRegister,
333 TParentRoute,
334 TPath,
335 TFullPath,
336 TCustomId,
337 TId,
338 TSearchValidator,
339 TParams,
340 AnyContext,
341 TRouteContextFn,
342 TBeforeLoadFn,
343 TLoaderDeps,
344 TLoaderFn,
345 TChildren,
346 unknown,
347 TSSR,

Callers 15

FileRouteClass · 0.90
createTestRouterFunction · 0.90
link.test-d.tsxFile · 0.90
route.test.tsxFile · 0.90
setupFunction · 0.90
not-found.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by 15

createTestRouterFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
runTestFunction · 0.72
setupRouterFunction · 0.72
setupFunction · 0.72
createTestRouterFunction · 0.72
runTestFunction · 0.72
setupRouterFunction · 0.72
createTestRouterFunction · 0.72