mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-17 22:49:39 +02:00
Add mutationKey everywhere
This commit is contained in:
@@ -13,6 +13,7 @@ export function useDeleteFolder(id: string | null) {
|
||||
const confirm = useConfirm();
|
||||
|
||||
return useMutation<Folder | null, string>({
|
||||
mutationKey: ['delete_folder', id],
|
||||
mutationFn: async () => {
|
||||
const folder = await getFolder(id);
|
||||
const confirmed = await confirm({
|
||||
|
||||
Reference in New Issue
Block a user