Describe the bug#
Crash
Your minimal, reproducible example#
N/A
Steps to reproduce#
Add a TrustedType policy before rendering the devtool.
Expected behavior#
Do not use dangerouslySetInnerHTML.
https://github.com/TanStack/query/blob/fd02255066ac3a136f6b62863387c486d0d560fc/packages/react-query-devtools/src/devtools.tsx#L532
I see a nonce option but we cannot change the CSP header to do that. The HTML rendered can be static if you use CSS variables to replace them, or you can use CSSOM to insert CSS rules manually tooSheetElement.sheet
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
Chrome
Tanstack Query adapter#
None
TanStack Query version#
4.29.7
TypeScript version#
No response
Additional context#
No response
can you try with v5 please, we have new devtools there