@tanstack/react-router 1.101.0 → 1.102.0
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 +11 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +11 -2
- package/dist/esm/router.js.map +1 -1
- package/package.json +2 -2
- package/src/router.ts +13 -5
package/dist/cjs/router.cjs
CHANGED
|
@@ -524,9 +524,18 @@ class Router {
|
|
|
524
524
|
...next
|
|
525
525
|
}) => {
|
|
526
526
|
const isSameState = () => {
|
|
527
|
-
|
|
527
|
+
const ignoredProps = [
|
|
528
|
+
"key",
|
|
529
|
+
"__TSR_index",
|
|
530
|
+
"__hashScrollIntoViewOptions"
|
|
531
|
+
];
|
|
532
|
+
ignoredProps.forEach((prop) => {
|
|
533
|
+
next.state[prop] = this.latestLocation.state[prop];
|
|
534
|
+
});
|
|
528
535
|
const isEqual = routerCore.deepEqual(next.state, this.latestLocation.state);
|
|
529
|
-
|
|
536
|
+
ignoredProps.forEach((prop) => {
|
|
537
|
+
delete next.state[prop];
|
|
538
|
+
});
|
|
530
539
|
return isEqual;
|
|
531
540
|
};
|
|
532
541
|
const isSameUrl = this.latestLocation.href === next.href;
|