You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Next 13+ App Dir you must install it as a dev dependency for it to work.
26
27
27
28
You can import the devtools like this:
@@ -32,7 +33,6 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
32
33
33
34
By default, React Query Devtools are only included in bundles when `process.env.NODE_ENV === 'development'`, so you don't need to worry about excluding them during a production build.
34
35
35
-
36
36
## Floating Mode
37
37
38
38
Floating Mode will mount the devtools as a fixed, floating element in your app and provide a toggle in the corner of the screen to show and hide the devtools. This toggle state will be stored and remembered in localStorage across reloads.
@@ -66,6 +66,8 @@ function App() {
66
66
- Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used.
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
69
+
-`styleNonce?: string`
70
+
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
- Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error.
65
+
-`styleNonce?: string`
66
+
- Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
* Use this so you can define custom errors that can be shown in the devtools.
36
36
*/
37
37
errorTypes?: Array<DevToolsErrorType>
38
+
/**
39
+
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
40
+
*/
41
+
styleNonce?: string
38
42
}
39
43
40
44
exportfunctionReactQueryDevtools(
@@ -43,7 +47,8 @@ export function ReactQueryDevtools(
* Use this so you can define custom errors that can be shown in the devtools.
45
45
*/
46
46
errorTypes?: Array<DevToolsErrorType>
47
+
/**
48
+
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
0 commit comments