Skip to content

Commit

Permalink
fix(query-devtools): Preserve offline status after minimize (#7096)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardeora authored Mar 12, 2024
1 parent ecfac38 commit 93674fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/query-devtools/src/Devtools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const [selectedMutationId, setSelectedMutationId] = createSignal<number | null>(
null,
)
const [panelWidth, setPanelWidth] = createSignal(0)
const [offline, setOffline] = createSignal(false)

export type DevtoolsComponentType = Component<QueryDevtoolsProps> & {
shadowDOMTarget?: ShadowRoot
Expand Down Expand Up @@ -776,8 +777,6 @@ const ContentView: Component<DevtoolsPanelProps> = (props) => {
() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER,
) as () => 1 | -1

const [offline, setOffline] = createSignal(false)

const sortFn = createMemo(() => sortFns[sort() as string])
const mutationSortFn = createMemo(
() => mutationSortFns[mutationSort() as string],
Expand Down

0 comments on commit 93674fe

Please sign in to comment.