Add mutationKey everywhere

This commit is contained in:
Gregory Schier
2024-06-21 09:25:25 -07:00
parent 3b784378bf
commit 146fc133f0
44 changed files with 67 additions and 26 deletions

View File

@@ -8,6 +8,7 @@ export function useCreateWorkspace() {
const routes = useAppRoutes();
const prompt = usePrompt();
return useMutation<Workspace, void, void>({
mutationKey: ['create_workspace'],
mutationFn: async () => {
const name = await prompt({
id: 'new-workspace',