mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:16 +01:00
Add mutationKey everywhere
This commit is contained in:
@@ -7,6 +7,7 @@ export function useUpdateSettings() {
|
||||
const settings = useSettings();
|
||||
|
||||
return useMutation<void, unknown, Partial<Settings>>({
|
||||
mutationKey: ['update_settings'],
|
||||
mutationFn: async (patch) => {
|
||||
if (settings == null) return;
|
||||
const newSettings: Settings = { ...settings, ...patch };
|
||||
|
||||
Reference in New Issue
Block a user