diff --git a/.changeset/query-devtools-trusted-types.md b/.changeset/query-devtools-trusted-types.md new file mode 100644 index 00000000000..d69a10be283 --- /dev/null +++ b/.changeset/query-devtools-trusted-types.md @@ -0,0 +1,11 @@ +--- +'@tanstack/query-devtools': patch +'@tanstack/angular-query-devtools': patch +'@tanstack/preact-query-devtools': patch +'@tanstack/react-query-devtools': patch +'@tanstack/solid-query-devtools': patch +'@tanstack/svelte-query-devtools': patch +'@tanstack/vue-query-devtools': patch +--- + +Add a `trustedTypesPolicy` option, so the devtools render on pages that enforce `require-trusted-types-for 'script'`. diff --git a/docs/framework/angular/devtools.md b/docs/framework/angular/devtools.md index 18ea9f39854..8f3b7bbbd5a 100644 --- a/docs/framework/angular/devtools.md +++ b/docs/framework/angular/devtools.md @@ -184,8 +184,8 @@ export const appConfig: ApplicationConfig = { `initialIsOpen`, and `theme` accept either their documented static value or a signal containing that value. -`styleNonce`, `shadowDOMTarget`, and `hideDisabledQueries` are construction-time -options and do not accept signals. +`styleNonce`, `shadowDOMTarget`, `trustedTypesPolicy`, and `hideDisabledQueries` +are construction-time options and do not accept signals. - `loadDevtools?: 'auto' | boolean` - Omit or `'auto'`: load devtools only in development mode. @@ -207,6 +207,8 @@ options and do not accept signals. - Deprecated. The devtools no longer add a `