@tanstack/react-router breaking changes
@tanstack/react-router 1.170.42 (October 10, 2026) is its newest release with breaking changes. The first: Behavior changed buildLocation. Every breaking API change we have recorded in @tanstack/react-router on npm: 61 breaking changes in 17 versions. Below, its 17 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.170.46, released October 22, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@tanstack/react-router 1.170.42 breaking changes
- Behavior changed
buildLocation
buildLocation now derives mask and routeMasks locations from the same _fromLocation as the destination, so code relying on their previous values may see different results. github.com
@tanstack/react-router 1.170.37 breaking changes
- Removed
InjectedHtmlEntry
InjectedHtmlEntry was removed in @tanstack/react-router 1.170.37 npmjs.com - Behavior changed
Router requests whose Accept header allows neither text/html nor */* now receive 406 Not Acceptable instead of 500. github.com - Behavior changed
Await
A Solid Await without a fallback no longer holds the streamed shell; it renders inside the nearest Suspense boundary and now renders falsy resolved values. github.com - Behavior changed
RawStream
Clients and servers must run matching versions for requests that pass a RawStream argument. github.com - Signature changed
deepEqual
Callers passing an options object must pass partial and explicitUndefined as positional arguments. The ignoreUndefined: false option is replaced by explicitUndefined. github.com - Signature changed
ssr/server:renderRouterToStream
Was const renderRouterToStream: ({request, router, responseHeaders, children}: {request: Request; router: AnyRouter; responseHeaders: Headers; children: ReactNode;}) => Promise<import('@tanstack/router-core/ssr/server').SsrResponse>; now... npmjs.com
@tanstack/react-router 1.170.36 breaking changes
- Removed
isPlainArray
The isPlainArray helper is no longer exported from the package. Remove any imports of it. npmjs.com - Removed
isPlainObject
The isPlainObject helper is no longer exported from the package. Remove any imports of it. npmjs.com - Behavior changed
Link
External links now forward element props exactly as given, including falsy values. Check code that relied on the previous prop handling. github.com - Behavior changed
pathParamsAllowedCharacters
The option is now read only at router creation. To change allowed characters, create a new router instance instead of changing the option later. github.com - Signature changed
RouterProps
Was type RouterProps<TRouter extends AnyRouter = RegisteredRouter, TDehydrated extends Record<string, any> = Record<string, any>> = Omit<RouterOptions<TRouter['routeTree'], NonNullable<TRouter['options']['trailingSlash']>... npmjs.com
@tanstack/react-router 1.170.35 breaking changes
- Behavior changed
Router subscriptions now use useSelector from the upgraded TanStack Store 0.11, with selector comparisons and Vue subscription cleanup preserved. Most code should be unaffected, but code depending on the old store internals may need review. github.com
@tanstack/react-router 1.170.34 breaking changes
- Behavior changed
Navigation and redirect destinations are now validated, and ambiguous relative URLs are kept on the current origin. Check code that relies on redirects or links to other origins. github.com - Configuration changed
Configured origins are no longer normalized by the router, so they must already be in normalized form before being passed in. github.com
@tanstack/react-router 1.170.33 breaking changes
- Behavior changed
Structural descendants below error and not-found boundaries no longer receive route lifecycle callbacks. Code relying on those callbacks firing for them will see different behavior. github.com - Signature changed
CatchBoundary
Was class CatchBoundary extends React.Component<{getResetKey: () => unknown; children: React.ReactNode; errorComponent?: ErrorRouteComponent; onCatch?: (error: Error, errorInfo: ErrorInfo) => void;}>; now class CatchBoundary extends... npmjs.com - Signature changed
CatchBoundary.componentDidCatch
Was componentDidCatch(error: Error, errorInfo: ErrorInfo): void; now componentDidCatch(error: unknown, errorInfo: ErrorInfo): void. npmjs.com - Signature changed
CatchBoundary.getDerivedStateFromError
Was static getDerivedStateFromError(error: Error): {error: Error;}; now static getDerivedStateFromError(error: unknown): {error: unknown[];}. npmjs.com - Signature changed
CatchBoundary.getDerivedStateFromProps
Was static getDerivedStateFromProps(props: {getResetKey: () => unknown;}, state: {resetKey?: unknown; error: Error | null;}): {resetKey: unknown; error: null;} | {resetKey: unknown; error?: undefined;}; now static... npmjs.com - Signature changed
CatchBoundary.state
Was state: {error: Error | null; resetKey?: unknown;}; now state: {error: [unknown] | 0; resetKey?: unknown;}. npmjs.com - Signature changed
CatchBoundary.state.error
Was error: Error | null; now error: [unknown] | 0. npmjs.com - Signature changed
CatchNotFound
Was function CatchNotFound(props: {fallback?: (error: NotFoundError) => React.ReactElement; onCatch?: (error: Error, errorInfo: ErrorInfo) => void; children: React.ReactNode;}): import("react/jsx-runtime").JSX.Element; now function... npmjs.com - Signature changed
ErrorComponent
Was function ErrorComponent({error}: {error: any;}): import("react/jsx-runtime").JSX.Element; now function ErrorComponent({error}: {error: unknown;}): import("react/jsx-runtime").JSX.Element. npmjs.com - Signature changed
onCatch
Boundary error components and onCatch callbacks in React and Vue now receive unknown instead of a typed error. Narrow the value (for example with error instanceof Error) before reading message or stack. github.com
Older versions
11 older versions, each with its first changes. Sign up to see every change
Show 11 older versions
@tanstack/react-router 1.170.32 breaking changes
- Behavior changed
Context is now kept when a route reloads, which may change values code reads after a reload. github.com
@tanstack/react-router 1.170.30 breaking changes
- Signature changed
CatchBoundary
CatchBoundary is now exported directly as a class component instead of through a function wrapper. Code that calls or wraps it as a function may need to change. npmjs.com
@tanstack/react-router 1.170.28 breaking changes
- Signature changed
AsyncRouteComponent
Was type AsyncRouteComponent<TProps> = RouteTypes<TProps>['component'] & {preload?: () => Promise<void>;}; now type AsyncRouteComponent<TProps> = RouteTypes<TProps>['component'] & {preload?: () => Promise<void> | undefined;}. npmjs.com
@tanstack/react-router 1.170.26 breaking changes
- Removed
data-transitioning
The data-transitioning attribute on Link elements was undocumented and has been removed. Stop relying on it in selectors or styles. github.com - Removed
isTransitioning
The Link isTransitioning state was undocumented and has been removed. Stop reading it from Link components. github.com
And 1 more in this version.
@tanstack/react-router 1.170.21 breaking changes
- Signature changed
RouterCore.getMatchedRoutes
getMatchedRoutes() now returns [matchedRoutes, rawParams, foundRoute] instead of an object. Code that destructures or reads named properties from its result must be updated to use array positions. github.com
@tanstack/react-router 1.170.19 breaking changes
- Removed
GetMatchFn
The exported types were removed along with the methods they typed. github.com - Removed
MatchRoutesOpts.preload
The preload and dest options were removed from MatchRoutesOpts. github.com
And 20 more in this version.
@tanstack/react-router 1.170.13 breaking changes
- Behavior changed
retainSearchParams
retainSearchParams no longer restores search params that a downstream stripSearchParams removed, so code relying on the previous restoring behavior may see different search params. github.com
@tanstack/react-router 1.170.12 breaking changes
- Removed
llms:default
default was removed in @tanstack/react-router 1.170.12 npmjs.com
@tanstack/react-router 1.170.9 breaking changes
- Signature changed
ssr/server:renderRouterToStream
Was const renderRouterToStream: ({request, router, responseHeaders, children}: {request: Request; router: AnyRouter; responseHeaders: Headers; children: ReactNode;}) => Promise<Response>; now const renderRouterToStream: ({request, router... npmjs.com
@tanstack/react-router 1.170.8 breaking changes
- Behavior changed
transformAssets
The script callback context of transformAssets now only provides kind: 'script' and url. Code that read other fields from that context must stop relying on them. github.com - Configuration changed
Cross-origin settings for script assets are now set under the script key. Update any existing cross-origin configuration to use that key. github.com
And 1 more in this version.
@tanstack/react-router 1.168.24 breaking changes
- Signature changed
Asset
Was function Asset({tag, attrs, children, nonce}: RouterManagedTag & {nonce?: string;}): React.ReactElement | null; now function Asset(asset: RouterManagedTag & {nonce?: string;}): React.ReactElement | null. npmjs.com
Related packages
- @tanstack/router-plugin
- @tanstack/react-start
- @tanstack/ai
- @tanstack/ai-anthropic
- @tanstack/ai-client
- @tanstack/ai-gemini
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.