Skip to content

Commit b2fa955

Browse files
authored
fix(react-router-devtools): remove solid-js as a dependency (#4376)
1 parent de22e58 commit b2fa955

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

packages/react-router-devtools/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"node": ">=12"
6363
},
6464
"dependencies": {
65-
"@tanstack/router-devtools-core": "workspace:^",
66-
"solid-js": "^1.9.5"
65+
"@tanstack/router-devtools-core": "workspace:^"
6766
},
6867
"devDependencies": {
6968
"@vitejs/plugin-react": "^4.3.4",

packages/react-router-devtools/src/TanStackRouterDevtools.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { TanStackRouterDevtoolsCore } from '@tanstack/router-devtools-core'
22
import { Fragment, useEffect, useRef, useState } from 'react'
33
import { useRouter, useRouterState } from '@tanstack/react-router'
4+
import type { ButtonHTMLAttributes, HTMLAttributes } from 'react'
45
import type { AnyRouter } from '@tanstack/react-router'
56
import type React from 'react'
6-
import type { JSX } from 'solid-js'
77

88
interface DevtoolsOptions {
99
/**
@@ -13,15 +13,15 @@ interface DevtoolsOptions {
1313
/**
1414
* Use this to add props to the panel. For example, you can add className, style (merge and override default style), etc.
1515
*/
16-
panelProps?: JSX.HTMLAttributes<HTMLDivElement>
16+
panelProps?: HTMLAttributes<HTMLDivElement>
1717
/**
1818
* Use this to add props to the close button. For example, you can add className, style (merge and override default style), onClick (extend default handler), etc.
1919
*/
20-
closeButtonProps?: JSX.ButtonHTMLAttributes<HTMLButtonElement>
20+
closeButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
2121
/**
2222
* Use this to add props to the toggle button. For example, you can add className, style (merge and override default style), onClick (extend default handler), etc.
2323
*/
24-
toggleButtonProps?: JSX.ButtonHTMLAttributes<HTMLButtonElement>
24+
toggleButtonProps?: ButtonHTMLAttributes<HTMLButtonElement>
2525
/**
2626
* The position of the TanStack Router logo to open and close the devtools panel.
2727
* Defaults to 'bottom-left'.

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)