@tanstack/react-router-devtools 0.0.1-beta.76 → 0.0.1-beta.78
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/devtools.js +1 -1
- package/build/cjs/devtools.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +127 -127
- package/build/umd/index.development.js +1 -30
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +2 -2
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/devtools.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router-devtools",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.78",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "tanstack/router",
|
|
7
7
|
"homepage": "https://tanstack.com/router/",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/runtime": "^7.16.7",
|
|
44
44
|
"date-fns": "^2.29.1",
|
|
45
|
-
"@tanstack/react-router": "0.0.1-beta.
|
|
45
|
+
"@tanstack/react-router": "0.0.1-beta.77"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/devtools.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import {
|
|
3
|
-
Router,
|
|
4
3
|
last,
|
|
5
4
|
routerContext,
|
|
6
5
|
invariant,
|
|
7
6
|
useRouter,
|
|
8
7
|
AnyRouter,
|
|
8
|
+
useStore,
|
|
9
9
|
} from '@tanstack/react-router'
|
|
10
10
|
|
|
11
11
|
import useLocalStorage from './useLocalStorage'
|
|
@@ -424,7 +424,7 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
|
|
|
424
424
|
'No router was found for the TanStack Router Devtools. Please place the devtools in the <RouterProvider> component tree or pass the router instance to the devtools manually.',
|
|
425
425
|
)
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
useStore(router.__store)
|
|
428
428
|
|
|
429
429
|
const [activeRouteId, setActiveRouteId] = useLocalStorage(
|
|
430
430
|
'tanstackRouterDevtoolsActiveRouteId',
|