mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
Refactor remaining queries/mutations for new controller
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user