@tanstack/react-router 1.57.17 → 1.57.18

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.57.17",
3
+ "version": "1.57.18",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1326,7 +1326,7 @@ export class Router<
1326
1326
  'Could not find match for from: ' + dest.from,
1327
1327
  )
1328
1328
 
1329
- const fromSearch = this.state.pendingMatches
1329
+ const fromSearch = this.state.pendingMatches?.length
1330
1330
  ? last(this.state.pendingMatches)?.search
1331
1331
  : last(fromMatches)?.search || this.latestLocation.search
1332
1332