@tanstack/react-router 1.74.0 → 1.74.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.74.0",
3
+ "version": "1.74.3",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  "peerDependencies": {
67
67
  "react": ">=18",
68
68
  "react-dom": ">=18",
69
- "@tanstack/router-generator": "1.73.1"
69
+ "@tanstack/router-generator": "1.74.2"
70
70
  },
71
71
  "peerDependenciesMeta": {
72
72
  "@tanstack/router-generator": {
package/src/router.ts CHANGED
@@ -1390,7 +1390,6 @@ export class Router<
1390
1390
  const stayingMatches = matchedRoutesResult?.matchedRoutes.filter((d) =>
1391
1391
  fromMatches.find((e) => e.routeId === d.id),
1392
1392
  )
1393
-
1394
1393
  let pathname: string
1395
1394
  if (dest.to) {
1396
1395
  pathname = this.resolvePathWithBase(fromPath, `${dest.to}`)
@@ -1463,7 +1462,7 @@ export class Router<
1463
1462
 
1464
1463
  const applyMiddlewares = (search: any) => {
1465
1464
  const allMiddlewares =
1466
- stayingMatches?.reduce(
1465
+ matchedRoutesResult?.matchedRoutes.reduce(
1467
1466
  (acc, route) => {
1468
1467
  let middlewares: Array<SearchMiddleware<any>> = []
1469
1468
  if ('search' in route.options) {