Skip to content

TanStackRouterDevtools broken when rendering inside of a shadow DOM #1709

@reihwald

Description

@reihwald

Describe the bug

I'm using Tanstack Query and Router inside of a shadow DOM. The Query devtools have a shadowDOMTarget option that makes it possible to render them correctly. The Router devtools sadly lack such an option which makes them pretty much unusable.

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-3rsmfi?file=src%2Fmain.tsx

Steps to Reproduce the Bug or Issue

Just launch the project. The broken devtools are instantly visible as the hiding/showing doesn't work.

Expected behavior

As a developer, I expect to be able to use the devtools when rendering my React app inside of a shadow DOM.

Screenshots or Videos

image

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 125

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions