@tanstack/react-router 0.0.1-beta.50 → 0.0.1-beta.51
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/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +50 -50
- package/build/umd/index.development.js +18 -15
- 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/index.tsx +7 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.51",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "tanstack/router",
|
|
7
7
|
"homepage": "https://tanstack.com/router/",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@babel/runtime": "^7.16.7",
|
|
44
44
|
"@solidjs/reactivity": "^0.0.7",
|
|
45
45
|
"use-sync-external-store": "^1.2.0",
|
|
46
|
-
"@tanstack/router-core": "0.0.1-beta.
|
|
46
|
+
"@tanstack/router-core": "0.0.1-beta.51"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/use-sync-external-store": "^0.0.3",
|
package/src/index.tsx
CHANGED
|
@@ -327,10 +327,10 @@ export function RouterProvider<
|
|
|
327
327
|
}: RouterProps<TRouteConfig, TAllRouteInfo, TRouterContext>) {
|
|
328
328
|
router.update(rest)
|
|
329
329
|
|
|
330
|
-
const
|
|
330
|
+
const currentMatches = useStore(
|
|
331
331
|
router.store,
|
|
332
|
-
(s) =>
|
|
333
|
-
|
|
332
|
+
(s) => s.currentMatches,
|
|
333
|
+
undefined,
|
|
334
334
|
)
|
|
335
335
|
|
|
336
336
|
React.useEffect(router.mount, [router])
|
|
@@ -613,7 +613,7 @@ function SubOutlet({
|
|
|
613
613
|
</React.Suspense>
|
|
614
614
|
{/* Provide a suffix suspense boundary to make sure the router is
|
|
615
615
|
ready to be dehydrated on the server */}
|
|
616
|
-
{/* {router.options.ssrFooter && match.
|
|
616
|
+
{/* {router.options.ssrFooter && match.id === rootRouteId ? (
|
|
617
617
|
<React.Suspense fallback={null}>
|
|
618
618
|
{(() => {
|
|
619
619
|
if (router.store.pending) {
|
|
@@ -676,11 +676,11 @@ function CatchBoundaryInner(props: {
|
|
|
676
676
|
|
|
677
677
|
// React.useEffect(() => {
|
|
678
678
|
// if (activeErrorState) {
|
|
679
|
-
// let prevKey = router.store.currentLocation.key
|
|
679
|
+
// let prevKey = router.store.state.currentLocation.key
|
|
680
680
|
// return createRoot((dispose) => {
|
|
681
681
|
// createEffect(() => {
|
|
682
|
-
// if (router.store.currentLocation.key !== prevKey) {
|
|
683
|
-
// prevKey = router.store.currentLocation.key
|
|
682
|
+
// if (router.store.state.currentLocation.key !== prevKey) {
|
|
683
|
+
// prevKey = router.store.state.currentLocation.key
|
|
684
684
|
// setActiveErrorState({} as any)
|
|
685
685
|
// }
|
|
686
686
|
// })
|