@tanstack/react-router 1.101.0 → 1.101.2

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.
@@ -524,9 +524,18 @@ class Router {
524
524
  ...next
525
525
  }) => {
526
526
  const isSameState = () => {
527
- next.state.key = this.latestLocation.state.key;
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
- delete next.state.key;
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;