@tanstack/router-core 1.131.22 → 1.131.23
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 +2 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/utils.cjs +8 -0
- package/dist/cjs/utils.cjs.map +1 -1
- package/dist/cjs/utils.d.cts +1 -0
- package/dist/esm/router.js +3 -3
- package/dist/esm/router.js.map +1 -1
- package/dist/esm/utils.d.ts +1 -0
- package/dist/esm/utils.js +8 -0
- package/dist/esm/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +5 -6
- package/src/utils.ts +11 -0
package/dist/cjs/router.cjs
CHANGED
|
@@ -249,10 +249,10 @@ class RouterCore {
|
|
|
249
249
|
dest.from,
|
|
250
250
|
void 0
|
|
251
251
|
).matchedRoutes;
|
|
252
|
-
const matchedFrom =
|
|
252
|
+
const matchedFrom = utils.findLast(allCurrentLocationMatches, (d) => {
|
|
253
253
|
return comparePaths(d.fullPath, fromPath);
|
|
254
254
|
});
|
|
255
|
-
const matchedCurrent =
|
|
255
|
+
const matchedCurrent = utils.findLast(allFromMatches, (d) => {
|
|
256
256
|
return comparePaths(d.fullPath, currentLocation.pathname);
|
|
257
257
|
});
|
|
258
258
|
if (!matchedFrom && !matchedCurrent) {
|