Show decrypt error in secure input

This commit is contained in:
Gregory Schier
2025-05-20 07:41:32 -07:00
parent 1974d61aa4
commit 4c3a02ac53
4 changed files with 82 additions and 16 deletions

View File

@@ -30,6 +30,7 @@ export function createFastMutation<TData = unknown, TError = unknown, TVariables
try {
const data = await mutationFn(variables);
onSuccess?.(data);
onSettled?.();
return data;
} catch (err: unknown) {
const stringKey = mutationKey.join('.');
@@ -44,11 +45,9 @@ export function createFastMutation<TData = unknown, TError = unknown, TVariables
});
}
onError?.(e);
} finally {
onSettled?.();
throw e;
}
return null;
};
const mutate = (