@tanstack/router-core 1.139.12 → 1.139.13
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 +7 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +8 -3
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +16 -2
package/dist/esm/router.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Store, batch } from "@tanstack/store";
|
|
2
2
|
import { createBrowserHistory, parseHref } from "@tanstack/history";
|
|
3
|
-
import { createControlledPromise, deepEqual, replaceEqualDeep, decodePath, last, findLast
|
|
3
|
+
import { createControlledPromise, deepEqual, replaceEqualDeep, decodePath, functionalUpdate, last, findLast } from "./utils.js";
|
|
4
4
|
import { processRouteTree, processRouteMasks, findSingleMatch, findRouteMatch, findFlatMatch } from "./new-process-route-tree.js";
|
|
5
5
|
import { trimPath, resolvePath, cleanPath, trimPathRight, interpolatePath } from "./path.js";
|
|
6
6
|
import { createLRUCache } from "./lru-cache.js";
|
|
@@ -396,11 +396,16 @@ class RouterCore {
|
|
|
396
396
|
);
|
|
397
397
|
if (match) {
|
|
398
398
|
Object.assign(params, match.params);
|
|
399
|
-
const {
|
|
399
|
+
const {
|
|
400
|
+
from: _from,
|
|
401
|
+
params: maskParams,
|
|
402
|
+
...maskProps
|
|
403
|
+
} = match.route;
|
|
404
|
+
const nextParams = maskParams === false || maskParams === null ? {} : (maskParams ?? true) === true ? params : Object.assign(params, functionalUpdate(maskParams, params));
|
|
400
405
|
maskedDest = {
|
|
401
406
|
from: opts.from,
|
|
402
407
|
...maskProps,
|
|
403
|
-
params
|
|
408
|
+
params: nextParams
|
|
404
409
|
};
|
|
405
410
|
maskedNext = build(maskedDest);
|
|
406
411
|
}
|