Capítulo 56 de 57
This page is the index of the entire public Router API surface, organized into Functions, Components, Hooks, Types, and a Deprecated section, serving as the map for looking up any specific TanStack Router API by category.
createFileRoute, createLazyFileRoute, createRootRoute, createRootRouteWithContext, createRoute, createLazyRoute (creating routes eagerly, lazily, or with typed context), plus createRouteMask (URL masking) and createRouter (the main router instance factory).redirect and isRedirect (throwable navigation), notFound and isNotFound (throwable missing-resource signaling), defer (deferred loader data).getRouteApi (typed route accessor for code-split files), lazyRouteComponent, linkOptions (typed helper for building reusable link option objects), retainSearchParams and stripSearchParams (search param middleware helpers).<Outlet> (nested route rendering), <Link> (navigation), <Navigate> (imperative redirect-as-component), <Await> (suspend on a deferred promise), <CatchBoundary> / <CatchNotFound> (error/not-found boundaries), <ErrorComponent>, <MatchRoute> (conditional rendering based on route match), <ClientOnly>, <DefaultGlobalNotFound>, <NotFoundComponent>.useNavigate, useParams, useSearch, useLoaderData, useLoaderDeps, useRouteContext, useMatch, useMatches, useMatchRoute, useParentMatches, useChildMatches, useLocation, useRouter, useRouterState, useBlocker (navigation blocking/confirmation), useCanGoBack, useLinkProps, useAwaited (pairs with <Await>).RouterOptions, RouterState, RouterEvents, RouteOptions, RouteMatch, RouteApi, LinkOptions/LinkProps, NavigateOptions, ToOptions, NotFoundError, Redirect, ParsedLocation, HistoryState, Register (the declaration-merging registration type), ViewTransitionOptions.FileRoute, Route, Router, RouteApi, RootRoute, NotFoundRoute (class-based APIs), and rootRouteWithContext (superseded by createRootRouteWithContext) — all superseded by the modern factory-function equivalents.createRoute, createRootRoute, etc.) over the deprecated class-based equivalents (Route, RootRoute, Router classes) which are being phased out.NotFoundRoute is explicitly deprecated in favor of notFoundComponent (see Ch 50); rootRouteWithContext function is deprecated in favor of createRootRouteWithContext.useBlocker, <MatchRoute>, and <Await>/useAwaited are notable hooks/components not covered in depth elsewhere in this doc set but worth knowing exist: useBlocker for navigation confirmation dialogs, <MatchRoute> for conditional UI based on whether a route matches, <Await>/useAwaited for consuming defer()-wrapped loader promises.createRouter in depth.createRootRouteWithContext and the Register type in depth.notFound/isNotFound/NotFoundError in depth.