Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/devtools/devtools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface DevtoolsPanelOptions {
/**
* A boolean variable indicating whether the panel is open or closed
*/
isOpen: boolean
isOpen?: boolean
/**
* A function that toggles the open and close state of the panel
*/
Expand Down Expand Up @@ -365,7 +365,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef<
HTMLDivElement,
DevtoolsPanelOptions
>(function ReactQueryDevtoolsPanel(props, ref): React.ReactElement {
const { isOpen, setIsOpen, handleDragStart, ...panelProps } = props
const { isOpen = true, setIsOpen, handleDragStart, ...panelProps } = props

const queryClient = useQueryClient()
const queryCache = queryClient.getQueryCache()
Expand Down