Some fixes after upgrading react-query

This commit is contained in:
Gregory Schier
2024-05-10 09:19:29 -07:00
parent 9f4c80ecf1
commit acc07780a7
12 changed files with 35 additions and 20 deletions

View File

@@ -7,7 +7,6 @@ import { HelmetProvider } from 'react-helmet-async';
import { AppRouter } from './AppRouter';
const queryClient = new QueryClient({
logger: undefined,
defaultOptions: {
queries: {
retry: false,

View File

@@ -94,7 +94,7 @@ export function GrpcConnectionLayout({ style }: Props) {
/>
)}
secondSlot={({ style }) =>
!grpc.go.isLoading && (
!grpc.go.isPending && (
<div
style={style}
className={classNames(

View File

@@ -71,7 +71,7 @@ export function GrpcProtoSelection({ requestId }: Props) {
{!serverReflection && services != null && services.length > 0 && (
<Banner className="flex flex-col gap-2">
<p>
Found services
Found services{' '}
{services?.slice(0, 5).map((s, i) => {
return (
<span key={i}>
@@ -124,7 +124,6 @@ export function GrpcProtoSelection({ requestId }: Props) {
className="ml-auto opacity-30 transition-opacity group-hover:opacity-100"
onClick={async () => {
await protoFilesKv.set(protoFiles.filter((p) => p !== f));
grpc.reflect.remove();
}}
/>
</td>

View File

@@ -81,7 +81,7 @@ export const SettingsDialog = () => {
size="sm"
title="Check for updates"
icon="refresh"
spin={checkForUpdates.isLoading}
spin={checkForUpdates.isPending}
onClick={() => checkForUpdates.mutateAsync()}
/>
</div>
@@ -135,6 +135,7 @@ export const SettingsDialog = () => {
<KeyValueRows>
<KeyValueRow label="Version" value={appInfo.data?.version} />
<KeyValueRow label="Data Directory" value={appInfo.data?.appDataDir} />
<KeyValueRow label="Logs Directory" value={appInfo.data?.appLogDir} />
</KeyValueRows>
</VStack>
);