@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/esm/router.js
CHANGED
|
@@ -522,9 +522,18 @@ class Router {
|
|
|
522
522
|
...next
|
|
523
523
|
}) => {
|
|
524
524
|
const isSameState = () => {
|
|
525
|
-
|
|
525
|
+
const ignoredProps = [
|
|
526
|
+
"key",
|
|
527
|
+
"__TSR_index",
|
|
528
|
+
"__hashScrollIntoViewOptions"
|
|
529
|
+
];
|
|
530
|
+
ignoredProps.forEach((prop) => {
|
|
531
|
+
next.state[prop] = this.latestLocation.state[prop];
|
|
532
|
+
});
|
|
526
533
|
const isEqual = deepEqual(next.state, this.latestLocation.state);
|
|
527
|
-
|
|
534
|
+
ignoredProps.forEach((prop) => {
|
|
535
|
+
delete next.state[prop];
|
|
536
|
+
});
|
|
528
537
|
return isEqual;
|
|
529
538
|
};
|
|
530
539
|
const isSameUrl = this.latestLocation.href === next.href;
|