@tanstack/react-router 1.112.8 → 1.112.10
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/dist/cjs/router.cjs +10 -8
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +10 -8
- package/dist/esm/router.js.map +1 -1
- package/package.json +3 -3
- package/src/router.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router",
|
|
3
|
-
"version": "1.112.
|
|
3
|
+
"version": "1.112.10",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"jsesc": "^3.1.0",
|
|
54
54
|
"tiny-invariant": "^1.3.3",
|
|
55
55
|
"tiny-warning": "^1.0.3",
|
|
56
|
-
"@tanstack/
|
|
57
|
-
"@tanstack/
|
|
56
|
+
"@tanstack/history": "1.112.8",
|
|
57
|
+
"@tanstack/router-core": "^1.112.8"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@testing-library/jest-dom": "^6.6.3",
|
package/src/router.ts
CHANGED
|
@@ -1478,7 +1478,9 @@ export class Router<
|
|
|
1478
1478
|
let pathname: string
|
|
1479
1479
|
if (dest.to) {
|
|
1480
1480
|
const resolvePathTo =
|
|
1481
|
-
fromMatch?.fullPath ||
|
|
1481
|
+
fromMatch?.fullPath ||
|
|
1482
|
+
last(fromMatches)?.fullPath ||
|
|
1483
|
+
this.latestLocation.pathname
|
|
1482
1484
|
pathname = this.resolvePathWithBase(resolvePathTo, `${dest.to}`)
|
|
1483
1485
|
} else {
|
|
1484
1486
|
const fromRouteByFromPathRouteId =
|
|
@@ -2314,7 +2316,9 @@ export class Router<
|
|
|
2314
2316
|
updateMatch(matchId, (prev) => ({
|
|
2315
2317
|
...prev,
|
|
2316
2318
|
loadPromise: createControlledPromise<void>(() => {
|
|
2317
|
-
prev.loadPromise?.
|
|
2319
|
+
if (prev.loadPromise?.status !== 'resolved') {
|
|
2320
|
+
prev.loadPromise?.resolve()
|
|
2321
|
+
}
|
|
2318
2322
|
}),
|
|
2319
2323
|
beforeLoadPromise: createControlledPromise<void>(),
|
|
2320
2324
|
}))
|