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
Copy file name to clipboardExpand all lines: docs/react/devtools.md
+3-39Lines changed: 3 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,53 +54,17 @@ function App() {
54
54
55
55
-`initialIsOpen: Boolean`
56
56
- Set this `true` if you want the dev tools to default to being open
57
-
-`panelProps: PropsObject`
58
-
- Use this to add props to the panel. For example, you can add `className`, `style` (merge and override default style), etc.
59
-
-`closeButtonProps: PropsObject`
60
-
- Use this to add props to the close button. For example, you can add `className`, `style` (merge and override default style), `onClick` (extend default handler), etc.
61
-
-`toggleButtonProps: PropsObject`
62
-
- Use this to add props to the toggle button. For example, you can add `className`, `style` (merge and override default style), `onClick` (extend default handler), etc.
- 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.
73
67
74
-
## Embedded Mode
75
-
76
-
Embedded Mode will embed the devtools as a regular component in your application. You can style it however you'd like after that!
- The standard React style object used to style a component with inline styles
97
-
-`className: string`
98
-
- The standard React className property used to style a component with classes
99
-
-`showCloseButton?: boolean`
100
-
- Show a close button inside the devtools panel
101
-
-`closeButtonProps: PropsObject`
102
-
- Use this to add props to the close button. For example, you can add `className`, `style` (merge and override default style), `onClick` (extend default handler), etc.
103
-
104
68
## Devtools in production
105
69
106
70
Devtools are excluded in production builds. However, it might be desirable to lazy load the devtools in production:
0 commit comments