@tanstack/router-cli@1.167.34 @tanstack/react-router@1.170.33

medium risk

TanStack/routerSep 6, 2026 → Sep 6, 20260 days between releases

What's New

Fixed route-scoped hooks, error boundary types, and rendering performance issues.

Breaking Changes

  • Error boundary types for React and Vue changed to 'unknown', requiring explicit narrowing before accessing properties like 'message' or 'stack'.

Improvements

  • Fixed repeated innerHTML writes to prevent CSS parsing and Trusted Types errors during re-renders.
  • Preserved falsy thrown values in SSR environments to match native boundary behavior.

Bug Fixes

  • Fixed route-scoped hooks (useMatch, useSearch, useParams) to properly forward the shouldThrow option.
  • Excluded structural descendants below error boundaries from route lifecycle callbacks.

Upgrade Notes

When upgrading React or Vue, narrow boundary errors (e.g., `error instanceof Error`) before reading properties like `message`. The `ErrorComponentProps<TError>` type remains available for specific error types.

The Two Releases

@tanstack/router-cli@1.167.34

@tanstack/router-cli@1.167.34

Sep 6, 2026· 2 months ago

Updated the CLI tool to depend on the latest router generator package.

Full release notes
@tanstack/react-router@1.170.33

@tanstack/react-router@1.170.33

Sep 6, 2026· 2 months ago

Updated the React router bindings with fixes for API behavior, rendering performance, and error handling types.

Full release notes