Open History to see the last commit
1export {
2 defer,
3 TSR_DEFERRED_PROMISE,
4 isMatch,
5 joinPaths,
6 cleanPath,
7 trimPathLeft,
8 trimPathRight,
9 trimPath,
10 resolvePath,
11 parsePathname,
12 interpolatePath,
13 matchPathname,
14 matchByPath,
15 rootRouteId,
16 defaultSerializeError,
17 defaultParseSearch,
18 defaultStringifySearch,
19 parseSearchWith,
20 stringifySearchWith,
21 functionalUpdate,
22 replaceEqualDeep,
23 isPlainObject,
24 isPlainArray,
25 deepEqual,
26 createControlledPromise,
27 retainSearchParams,
28 stripSearchParams,
29 createSerializationAdapter,
30} from '@tanstack/router-core'
31β
32export type {
33 AnyRoute,
34 DeferredPromiseState,
35 DeferredPromise,
36 ParsedLocation,
37 RemoveTrailingSlashes,
38 RemoveLeadingSlashes,
39 ActiveOptions,
40 Segment,
41 ResolveRelativePath,
42 RootRouteId,
43 AnyPathParams,
44 ResolveParams,
45 ResolveOptionalParams,
46 ResolveRequiredParams,
47 SearchSchemaInput,
48 AnyContext,
49 RouteContext,
50 PreloadableObj,
51 RoutePathOptions,
52 StaticDataRouteOption,
53 RoutePathOptionsIntersection,
54 UpdatableStaticRouteOption,
55 MetaDescriptor,
56 RouteLinkEntry,
57 ParseParamsFn,
58 SearchFilter,
59 ResolveId,
60 InferFullSearchSchema,
61 InferFullSearchSchemaInput,
62 ErrorRouteProps,
63 ErrorComponentProps,
64 NotFoundRouteProps,
65 TrimPath,
66 TrimPathLeft,
67 TrimPathRight,
68 StringifyParamsFn,
69 ParamsOptions,
70 InferAllParams,
71 InferAllContext,
72 LooseReturnType,
73 LooseAsyncReturnType,
74 ContextReturnType,
75 ContextAsyncReturnType,
76 ResolveLoaderData,
77 ResolveRouteContext,
78 SearchSerializer,
79 SearchParser,
80 TrailingSlashOption,
81 Manifest,
82 RouterManagedTag,
83 ControlledPromise,
84 Constrain,
85 Expand,
86 MergeAll,
87 Assign,
88 IntersectAssign,
89 ResolveValidatorInput,
90 ResolveValidatorOutput,
91 Register,
92 AnyValidator,
93 DefaultValidator,
94 ValidatorFn,
95 AnySchema,
96 AnyValidatorAdapter,
97 AnyValidatorFn,
98 AnyValidatorObj,
99 ResolveValidatorInputFn,
100 ResolveValidatorOutputFn,
101 ResolveSearchValidatorInput,
102 ResolveSearchValidatorInputFn,
103 Validator,
104 ValidatorAdapter,
105 ValidatorObj,
106 FileRoutesByPath,
107 RouteById,
108 RootRouteOptions,
109 CreateFileRoute,
110 SerializationAdapter,
111 AnySerializationAdapter,
112} from '@tanstack/router-core'
113β
114export {
115 createHistory,
116 createBrowserHistory,
117 createHashHistory,
118 createMemoryHistory,
119} from '@tanstack/history'
120β
121export type {
122 BlockerFn,
123 HistoryLocation,
124 RouterHistory,
125 ParsedPath,
126 HistoryState,
127} from '@tanstack/history'
128β
129export { useAwaited, Await } from './awaited'
130export type { AwaitOptions } from './awaited'
131β
132export { CatchBoundary, ErrorComponent } from './CatchBoundary'
133export { ClientOnly } from './ClientOnly'
134β
135export {
136 FileRoute,
137 createFileRoute,
138 FileRouteLoader,
139 LazyRoute,
140 createLazyRoute,
141 createLazyFileRoute,
142} from './fileRoute'
143β
144export * from './history'
145β
146export { lazyRouteComponent } from './lazyRouteComponent'
147β
148export { useLinkProps, createLink, Link, linkOptions } from './link'
149export type {
150 InferDescendantToPaths,
151 RelativeToPath,
152 RelativeToParentPath,
153 RelativeToCurrentPath,
154 AbsoluteToPath,
155 RelativeToPathAutoComplete,
156 NavigateOptions,
157 ToOptions,
158 ToMaskOptions,
159 ToSubOptions,
160 ResolveRoute,
161 SearchParamOptions,
162 PathParamOptions,
163 ToPathOption,
164 LinkOptions,
165 MakeOptionalPathParams,
166 FileRouteTypes,
167 RouteContextParameter,
168 BeforeLoadContextParameter,
169 ResolveAllContext,
170 ResolveAllParamsFromParent,
171 ResolveFullSearchSchema,
172 ResolveFullSearchSchemaInput,
173 RouteIds,
174 NavigateFn,
175 BuildLocationFn,
176 FullSearchSchemaOption,
177 MakeRemountDepsOptionsUnion,
178 RemountDepsOptions,
179 ResolveFullPath,
180 AnyRouteWithContext,
181 AnyRouterWithContext,
182 CommitLocationOptions,
183 MatchLocation,
184 UseNavigateResult,
185 AnyRedirect,
186 Redirect,
187 RedirectOptions,
188 ResolvedRedirect,
189 MakeRouteMatch,
190 MakeRouteMatchUnion,
191 RouteMatch,
192 AnyRouteMatch,
193 RouteContextFn,
194 RouteContextOptions,
195 BeforeLoadContextOptions,
196 ContextOptions,
197 RouteOptions,
198 FileBaseRouteOptions,
199 BaseRouteOptions,
200 UpdatableRouteOptions,
201 RouteLoaderFn,
202 LoaderFnContext,
203 LazyRouteOptions,
204 AnyRouter,
205 RegisteredRouter,
206 RouterContextOptions,
207 ControllablePromise,
208 InjectedHtmlEntry,
209 RouterOptions,
210 RouterState,
211 ListenerFn,
212 BuildNextOptions,
213 RouterConstructorOptions,
214 RouterEvents,
215 RouterEvent,
216 RouterListener,
217 RouteConstraints,
218 RouteMask,
219 MatchRouteOptions,
220 CreateLazyFileRoute,
221} from '@tanstack/router-core'
222export type {
223 UseLinkPropsOptions,
224 ActiveLinkOptions,
225 LinkProps,
226 LinkComponent,
227 LinkComponentProps,
228 CreateLinkProps,
229} from './link'
230β
231export {
232 Matches,
233 useMatchRoute,
234 MatchRoute,
235 useMatches,
236 useParentMatches,
237 useChildMatches,
238} from './Matches'
239β
240export type { UseMatchRouteOptions, MakeMatchRouteOptions } from './Matches'
241β
242export { matchContext } from './matchContext'
243export { Match, Outlet } from './Match'
244β
245export { useMatch } from './useMatch'
246export { useLoaderDeps } from './useLoaderDeps'
247export { useLoaderData } from './useLoaderData'
248β
249export { redirect, isRedirect, createRouterConfig } from '@tanstack/router-core'
250β
251export {
252 RouteApi,
253 getRouteApi,
254 Route,
255 createRoute,
256 RootRoute,
257 rootRouteWithContext,
258 createRootRoute,
259 createRootRouteWithContext,
260 createRouteMask,
261 NotFoundRoute,
262} from './route'
263export type {
264 AnyRootRoute,
265 AsyncRouteComponent,
266 RouteComponent,
267 ErrorRouteComponent,
268 NotFoundRouteComponent,
269 DefaultRouteTypes,
270 RouteTypes,
271} from './route'
272β
273export { createRouter, Router } from './router'
274β
275export {
276 componentTypes,
277 lazyFn,
278 SearchParamError,
279 PathParamError,
280 getInitialRouterState,
281} from '@tanstack/router-core'
282β
283export { RouterProvider, RouterContextProvider } from './RouterProvider'
284export type { RouterProps } from './RouterProvider'
285β
286export {
287 useElementScrollRestoration,
288 ScrollRestoration,
289} from './ScrollRestoration'
290β
291export type { UseBlockerOpts, ShouldBlockFn } from './useBlocker'
292export { useBlocker, Block } from './useBlocker'
293β
294export { useNavigate, Navigate } from './useNavigate'
295β
296export { useParams } from './useParams'
297export { useSearch } from './useSearch'
298β
299export {
300 getRouterContext, // SSR
301} from './routerContext'
302β
303export { useRouteContext } from './useRouteContext'
304export { useRouter } from './useRouter'
305export { useRouterState } from './useRouterState'
306export { useLocation } from './useLocation'
307export { useCanGoBack } from './useCanGoBack'
308β
309export {
310 useLayoutEffect, // SSR
311 useStableCallback,
312} from './utils'
313β
314export { CatchNotFound, DefaultGlobalNotFound } from './not-found'
315export { notFound, isNotFound } from '@tanstack/router-core'
316export type { NotFoundError } from '@tanstack/router-core'
317β
318export type {
319 ValidateLinkOptions,
320 InferStructuralSharing,
321 ValidateUseSearchOptions,
322 ValidateUseParamsOptions,
323 ValidateLinkOptionsArray,
324} from './typePrimitives'
325β
326export type {
327 ValidateFromPath,
328 ValidateToPath,
329 ValidateSearch,
330 ValidateParams,
331 InferFrom,
332 InferTo,
333 InferMaskTo,
334 InferMaskFrom,
335 ValidateNavigateOptions,
336 ValidateNavigateOptionsArray,
337 ValidateRedirectOptions,
338 ValidateRedirectOptionsArray,
339 ValidateId,
340 InferStrict,
341 InferShouldThrow,
342 InferSelected,
343 ValidateUseSearchResult,
344 ValidateUseParamsResult,
345} from '@tanstack/router-core'
346β
347export { ScriptOnce } from './ScriptOnce'
348export { Asset } from './Asset'
349export { HeadContent } from './HeadContent'
350export { Scripts } from './Scripts'
351export type * from './ssr/serializer'
352export { composeRewrites } from '@tanstack/router-core'
353export type {
354 LocationRewrite,
355 LocationRewriteFunction,
356} from '@tanstack/router-core'