@tanstack/react-router 0.0.1-beta.258 → 0.0.1-beta.259

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.
@@ -1515,6 +1515,13 @@
1515
1515
  toLocation: routerState.location,
1516
1516
  pathChanged: routerState.location.href !== routerState.resolvedLocation?.href
1517
1517
  });
1518
+ if (routerState.location.hash !== routerState.resolvedLocation?.hash && document.querySelector) {
1519
+ console.log('hello', routerState.location.hash);
1520
+ const el = document.getElementById(routerState.location.hash);
1521
+ if (el) {
1522
+ el.scrollIntoView();
1523
+ }
1524
+ }
1518
1525
  router.pendingMatches = [];
1519
1526
  router.__store.setState(s => ({
1520
1527
  ...s,