@tanstack/react-router 1.1.7 → 1.1.9
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/build/cjs/router.js +2 -3
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +2 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +353 -353
- package/build/umd/index.development.js +2 -3
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/router.ts +2 -4
|
@@ -2367,9 +2367,8 @@
|
|
|
2367
2367
|
const build = (dest = {}, matches) => {
|
|
2368
2368
|
const from = this.latestLocation;
|
|
2369
2369
|
const fromSearch = (this.state.pendingMatches || this.state.matches).at(-1)?.search || from.search;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
const fromMatches = this.matchRoutes(fromPathname, fromSearch);
|
|
2370
|
+
let pathname = this.resolvePathWithBase(from.pathname, `${dest.to ?? ''}`);
|
|
2371
|
+
const fromMatches = this.matchRoutes(from.pathname, fromSearch);
|
|
2373
2372
|
const stayingMatches = matches?.filter(d => fromMatches?.find(e => e.routeId === d.routeId));
|
|
2374
2373
|
const prevParams = {
|
|
2375
2374
|
...last(fromMatches)?.params
|