@tanstack/react-router
1.170.46 · 22 Oct 2026MIT29.2M / weekRepositoryHomepagenpmAtom feed
1.170.46 is the newest release of 1.x.
In short
1 breaking5 fixed3 internal
- Breaking
Preserve falsy thrown values in React and Vue error boundaries. Type React and Vue boundary error components and
onCatchcallbacks asunknown. Solid boundary errors remain typed asError; SSR now wraps non-Errorloader errors to match Solid’s native boundary behavior, preserving the original value incause. Router state and loaderonErrorvalues are unchanged.
Release note
Patch Changes
Exclude structural descendants below error and not-found boundaries from route lifecycle callbacks. Preserve lifecycle membership through invalidation, hydration, background reloads, and superseded navigation publication.
Preserve falsy thrown values in React and Vue error boundaries. Type React and Vue boundary error components and
onCatchcallbacks asunknown. Solid boundary errors remain typed asError; SSR now wraps non-Errorloader errors to match Solid’s native boundary behavior, preserving the original value incause. Router state and loaderonErrorvalues are unchanged.When upgrading React or Vue, narrow boundary errors (for example, with
error instanceof Error) before readingmessageorstack.ErrorComponentProps<TError>remains available for values narrowed to a specific error type. RouteonErrortypes are unchanged.Retain successful not-found matches as terminal shared boundaries during client navigation, preserving route context while the destination loads.
Use URL.canParse for absolute URL checks in links, navigation, redirects, and build configuration. Preserve a URL constructor fallback for older browsers.
Fix route-scoped
useMatch,useSearch, anduseParamsAPIs to forward theshouldThrowoption and preserve optional return types whenshouldThrow: false.Fix repeated
innerHTMLwrites for unchanged styles and data scripts during React re-renders. This prevents unnecessary CSS parsing and Trusted Types errors during client navigation.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.