TanStack/router

SolidJS Router DevTools Props Not Compatible with React's JSX Types

Open

#4,658 创建于 2025年7月15日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (213 fork)batch import
good first issue

仓库指标

Star
 (4,419 star)
PR 合并指标
 (平均合并 2天 8小时) (30 天内合并 71 个 PR)

描述

Which project does this relate to?

Router

Describe the bug

I'm able to set the style prop for the toggleButtonProps on the devtool component in React. However other props like className and aria-label do not appear to be set.

I don't know if this is a bug or not but it also seems that I have to reload the browser every time I make changes to those toggleButtonProps props that do work like style.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-5kmyiwxf?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

  1. Define props on the toggleButtonProps property on <TanStackRouterDevtools /> in React.
  2. Observe that even on page reload certain props are not populated like className.

Expected behavior

As a user, I expect that when I set toggleButtonProps they are applied to the dev tools toggle button.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.127.8
  • OS: macOS
  • Browser: Chrome
  • Browser Version: 138
  • Bundler: vite
  • Bundler Version: v6.3.5

Additional context

No response

贡献者指南