Convert all mutate to mutateAsync.

This commit is contained in:
Mike Cao committed 2025-09-22 22:39:25 -07:00
1 parent 980e4e6b41
commit 6faf16e9aa
32 files changed
+78 -97

No files matched your search

+2 -2
View File
@@ -14,11 +14,11 @@ export function PixelDeleteButton({
onSave?: () => void;
}) {
const { formatMessage, labels, getErrorMessage } = useMessages();
const { mutate, isPending, error } = useDeleteQuery(`/pixels/${pixelId}`);
const { mutateAsync, isPending, error } = useDeleteQuery(`/pixels/${pixelId}`);
const { touch } = useModified();
const handleConfirm = (close: () => void) => {
mutate(null, {
await mutateAsync(null, {
onSuccess: () => {
touch('pixels');
onSave?.();