---
title: "@tanstack/react-router 1.170.42 Breaking Changes on npm"
description: "What each @tanstack/react-router release removed, renamed or changed: 61 breaking changes in 17 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@tanstack/react-router
last_updated: 2026-12-04
---

# @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

Latest version `1.170.46`, released October 22, 2026. [Source repository](https://github.com/TanStack/router)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.168.24](#v-1-168-24) to [1.170.42](#v-1-170-42): 60 breaking changes in 16 versions.

## @tanstack/react-router 1.170.42 breaking changes

@tanstack/react-router 1.170.42, released October 10, 2026: 1 breaking change.

- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.42)

## @tanstack/react-router 1.170.37 breaking changes

@tanstack/react-router 1.170.37, released September 16, 2026: 6 breaking changes.

- **Removed** `InjectedHtmlEntry`  

InjectedHtmlEntry was removed in @tanstack/react-router 1.170.37 [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.37)
- **Behavior changed**  

Router requests whose Accept header allows neither text/html nor \*/\* now receive 406 Not Acceptable instead of 500. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.37)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.37)
- **Behavior changed** `RawStream`  

Clients and servers must run matching versions for requests that pass a RawStream argument. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.37)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.37)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.37)

## @tanstack/react-router 1.170.36 breaking changes

@tanstack/react-router 1.170.36, released September 13, 2026: 5 breaking changes.

- **Removed** `isPlainArray`  

The isPlainArray helper is no longer exported from the package. Remove any imports of it. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.36)
- **Removed** `isPlainObject`  

The isPlainObject helper is no longer exported from the package. Remove any imports of it. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.36)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.36)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.36)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.36)

## @tanstack/react-router 1.170.35 breaking changes

@tanstack/react-router 1.170.35, released September 10, 2026: 1 breaking change.

- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.35)

## @tanstack/react-router 1.170.34 breaking changes

@tanstack/react-router 1.170.34, released September 9, 2026: 2 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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.34)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.34)

## @tanstack/react-router 1.170.33 breaking changes

@tanstack/react-router 1.170.33, released September 6, 2026: 10 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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.33)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **Signature changed** `CatchBoundary.componentDidCatch`  

Was componentDidCatch(error: Error, errorInfo: ErrorInfo): void; now componentDidCatch(error: unknown, errorInfo: ErrorInfo): void. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **Signature changed** `CatchBoundary.getDerivedStateFromError`  

Was static getDerivedStateFromError(error: Error): {error: Error;}; now static getDerivedStateFromError(error: unknown): {error: unknown\[\];}. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **Signature changed** `CatchBoundary.state`  

Was state: {error: Error | null; resetKey?: unknown;}; now state: {error: \[unknown\] | 0; resetKey?: unknown;}. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **Signature changed** `CatchBoundary.state.error`  

Was error: Error | null; now error: \[unknown\] | 0. [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.33)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.33)

## Older versions

11 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @tanstack/react-router 1.170.32 breaking changes

@tanstack/react-router 1.170.32, released August 22, 2026: 1 breaking change.

- **Behavior changed**  

Context is now kept when a route reloads, which may change values code reads after a reload. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.32)

### @tanstack/react-router 1.170.30 breaking changes

@tanstack/react-router 1.170.30, released August 18, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.30)

### @tanstack/react-router 1.170.28 breaking changes

@tanstack/react-router 1.170.28, released August 14, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.28)

### @tanstack/react-router 1.170.26 breaking changes

@tanstack/react-router 1.170.26, released August 12, 2026: 3 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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.26)
- **Removed** `isTransitioning`  

The Link isTransitioning state was undocumented and has been removed. Stop reading it from Link components. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.26)

And 1 more in this version.

### @tanstack/react-router 1.170.21 breaking changes

@tanstack/react-router 1.170.21, released August 6, 2026: 1 breaking change.

- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.21)

### @tanstack/react-router 1.170.19 breaking changes

@tanstack/react-router 1.170.19, released August 4, 2026: 22 breaking changes.

- **Removed** `GetMatchFn`  

The exported types were removed along with the methods they typed. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.19)
- **Removed** `MatchRoutesOpts.preload`  

The preload and dest options were removed from MatchRoutesOpts. [github.com](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.19)

And 20 more in this version.

### @tanstack/react-router 1.170.13 breaking changes

@tanstack/react-router 1.170.13, released June 5, 2026: 1 breaking change.

- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.13)

### @tanstack/react-router 1.170.12 breaking changes

@tanstack/react-router 1.170.12, released June 5, 2026: 1 breaking change.

- **Removed** `llms:default`  

default was removed in @tanstack/react-router 1.170.12 [npmjs.com](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.12)

### @tanstack/react-router 1.170.9 breaking changes

@tanstack/react-router 1.170.9, released May 29, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.170.9)

### @tanstack/react-router 1.170.8 breaking changes

@tanstack/react-router 1.170.8, released May 24, 2026: 3 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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.8)
- **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](https://github.com/TanStack/router/releases/tag/%40tanstack/react-router%401.170.8)

And 1 more in this version.

### @tanstack/react-router 1.168.24 breaking changes

@tanstack/react-router 1.168.24, released April 24, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/@tanstack/react-router/v/1.168.24)

## Related packages

- [@tanstack/router-plugin](https://since.dev/packages/npm/@tanstack/router-plugin.md)
- [@tanstack/react-start](https://since.dev/packages/npm/@tanstack/react-start.md)
- [@tanstack/ai](https://since.dev/packages/npm/@tanstack/ai.md)
- [@tanstack/ai-anthropic](https://since.dev/packages/npm/@tanstack/ai-anthropic.md)
- [@tanstack/ai-client](https://since.dev/packages/npm/@tanstack/ai-client.md)
- [@tanstack/ai-gemini](https://since.dev/packages/npm/@tanstack/ai-gemini.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
