Describe the bug#
I'm using Tanstack Query in a webcomponent, with this.attachShadow({ mode: 'closed' }). When I then add the dev tools, they do show up and I can see queries, but almost everything is non-interactive. I can only switch between queries and mutations. The buttons do not work, nor can I open details about a query.
After some testing, it seems to work better with mode: 'open'. Almost everything now works, except the settings (?).
Your minimal, reproducible example#
https://stackblitz.com/edit/github-ifjxaf?file=src%2Fmain.tsx
Steps to reproduce#
- Create a shadow DOM with
mode: closed
- Add React dev tools
- Try to click a button or anything
Expected behavior#
I'd expect the dev tools to react to my input, but they don't
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
Tanstack Query adapter#
react-query
TanStack Query version#
5.51.11
TypeScript version#
5.5.3
Additional context#
No response
if you want, please investigate the issue and propose a fix. I don't know enough about shadowDOM 😅