mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 12:30:06 +02:00
Add create/update playlist mutations and form
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { UseQueryOptions, DefaultOptions } from '@tanstack/react-query';
|
||||
import type { UseQueryOptions, DefaultOptions, UseMutationOptions } from '@tanstack/react-query';
|
||||
import { QueryClient, QueryCache } from '@tanstack/react-query';
|
||||
import { toast } from '/@/renderer/components';
|
||||
|
||||
@@ -49,3 +49,13 @@ export type QueryOptions = {
|
||||
suspense?: UseQueryOptions['suspense'];
|
||||
useErrorBoundary?: boolean;
|
||||
};
|
||||
|
||||
export type MutationOptions = {
|
||||
mutationKey: UseMutationOptions['mutationKey'];
|
||||
onError?: (err: any) => void;
|
||||
onSettled?: any;
|
||||
onSuccess?: any;
|
||||
retry?: UseQueryOptions['retry'];
|
||||
retryDelay?: UseQueryOptions['retryDelay'];
|
||||
useErrorBoundary?: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user