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
@@ -13,10 +13,10 @@ export function BoardAddForm({
onClose?: () => void;
}) {
const { formatMessage, labels, messages } = useMessages();
const { mutate, error, isPending } = useUpdateQuery('/websites', { teamId });
const { mutateAsync, error, isPending } = useUpdateQuery('/websites', { teamId });
const handleSubmit = async (data: any) => {
mutate(data, {
await mutateAsync(data, {
onSuccess: async () => {
onSave?.();
onClose?.();