@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.
- package/build/cjs/RouterProvider.js +7 -0
- package/build/cjs/RouterProvider.js.map +1 -1
- package/build/esm/index.js +7 -0
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +353 -353
- package/build/umd/index.development.js +7 -0
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/RouterProvider.tsx +13 -0
|
@@ -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,
|