Skip to content

Commit 793a5c7

Browse files
committed
chore: add changeset
1 parent 7ede9c7 commit 793a5c7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.changeset/mighty-banks-mate.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@tanstack/query-devtools': patch
3+
---
4+
5+
`setupStyleSheet` now sets `window.__nonce__` when a `styleNonce` is provided.
6+
7+
The devtools use [goober](https://goober.js.org/) for CSS-in-JS, which reads `window.__nonce__` every time it creates or accesses its style element. Without this, goober overwrote the nonce with `undefined`, causing CSP violations even when `styleNonce` was correctly passed to `<ReactQueryDevtools>`.

0 commit comments

Comments
 (0)