Refactor remaining queries/mutations for new controller

This commit is contained in:
jeffvli 2023-04-30 18:00:50 -07:00
parent 40aabd2217
commit bdd023fde3
15 changed files with 92 additions and 109 deletions

View file

@ -5,7 +5,7 @@ import type {
UseInfiniteQueryOptions,
} from '@tanstack/react-query';
import { QueryClient, QueryCache } from '@tanstack/react-query';
import { toast } from '/@/renderer/components';
import { toast } from '/@/renderer/components/toast/index';
const queryCache = new QueryCache({
onError: (error: any, query) => {
@ -39,7 +39,7 @@ export const queryClient = new QueryClient({
export type QueryHookArgs<T> = {
options?: QueryOptions;
query: T;
serverId?: string;
serverId: string | undefined;
};
export type MutationHookArgs = {