@tanstack/router-devtools 0.0.1-beta.174 → 0.0.1-beta.175

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-devtools",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.174",
4
+ "version": "0.0.1-beta.175",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
@@ -12,7 +12,6 @@
12
12
  "keywords": [
13
13
  "react",
14
14
  "location",
15
- "@tanstack/router",
16
15
  "router",
17
16
  "routing",
18
17
  "async",
@@ -42,7 +41,7 @@
42
41
  "dependencies": {
43
42
  "@babel/runtime": "^7.16.7",
44
43
  "date-fns": "^2.29.1",
45
- "@tanstack/react-router": "0.0.1-beta.174"
44
+ "@tanstack/react-router": "0.0.1-beta.175"
46
45
  },
47
46
  "scripts": {
48
47
  "build": "rollup --config rollup.config.js"
package/src/devtools.tsx CHANGED
@@ -563,13 +563,13 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
563
563
  },
564
564
  )
565
565
 
566
- React.useEffect(() => {
567
- const interval = setInterval(() => {
568
- router.cleanMatches()
569
- }, 1000)
566
+ // React.useEffect(() => {
567
+ // const interval = setInterval(() => {
568
+ // router.cleanMatches()
569
+ // }, 1000)
570
570
 
571
- return () => clearInterval(interval)
572
- }, [router])
571
+ // return () => clearInterval(interval)
572
+ // }, [router])
573
573
 
574
574
  return (
575
575
  <ThemeProvider theme={theme}>
package/src/utils.ts CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  AnyRoute,
5
5
  AnyRouteMatch,
6
6
  AnyRouter,
7
+ isMatchInvalid,
7
8
  } from '@tanstack/react-router'
8
9
 
9
10
  import { Theme, useTheme } from './theme'
@@ -37,9 +38,7 @@ export function getStatusColor(
37
38
  ) {
38
39
  return match.status === 'pending' || match.isFetching
39
40
  ? theme.active
40
- : router.getIsInvalid({
41
- matchId: match.id,
42
- })
41
+ : isMatchInvalid(match)
43
42
  ? theme.warning
44
43
  : match.status === 'error'
45
44
  ? theme.danger