MCPcopy
hub / github.com/TanStack/router / createRootRouteWithContext

Function createRootRouteWithContext

packages/vue-router/src/route.ts:394–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392>
393
394export function createRootRouteWithContext<TRouterContext extends {}>() {
395 return <
396 TRegister = Register,
397 TRouteContextFn = AnyContext,
398 TBeforeLoadFn = AnyContext,
399 TSearchValidator = undefined,
400 TLoaderDeps extends Record<string, any> = {},
401 TLoaderFn = undefined,
402 TSSR = unknown,
403 THandlers = undefined,
404 >(
405 options?: RootRouteOptions<
406 TRegister,
407 TSearchValidator,
408 TRouterContext,
409 TRouteContextFn,
410 TBeforeLoadFn,
411 TLoaderDeps,
412 TLoaderFn,
413 TSSR,
414 THandlers
415 >,
416 ) => {
417 return createRootRoute<
418 TRegister,
419 TSearchValidator,
420 TRouterContext,
421 TRouteContextFn,
422 TBeforeLoadFn,
423 TLoaderDeps,
424 TLoaderFn,
425 TSSR,
426 THandlers
427 >(options)
428 }
429}
430
431/**
432 * @deprecated Use the `createRootRouteWithContext` function instead.

Callers 8

link.test.tsxFile · 0.90
route.test-d.tsxFile · 0.90
router.test-d.tsxFile · 0.90
__root.tsxFile · 0.90
main.tsxFile · 0.90
__root.tsxFile · 0.90
__root.tsxFile · 0.90

Calls 1

createRootRouteFunction · 0.70

Tested by

no test coverage detected