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