ubanyiU
Convex Community10mo ago
1 reply
ubanyi

Can't get my functions to fire from React native with Expo and Clerk

I don't have any type errors, I can see my functions on the dashboard, every before the mutation line works but fails can't get past this line, the function call does not work I don't see any errors, please help

const handleDone = handleSubmit(async (data) => {
    // Create a new main budget if we haven't already
    if (!createdBudgetId) {
      const newBudgetId = createMainBudget(data.title, data.description || "");
      console.log("Creating budget in backend");
      const createBudget = useMutation(api.budgets.createMainBudget);
      console.log(typeof createBudget)
 await createBudget({
          name: data.title,
          description: data.description,
          amount: "0",
        });
Was this page helpful?