backpack1098B
Convex Community3y ago
8 replies
backpack1098

react element as an arg?

Hi team! is it wrong to pass react element as an argument? im getting
[CONVEX A(purchaseOrderFuncs:sendPOAction)] Uncaught Error: Field name $$typeof starts with a '$', which is reserved.

for doing
    const emailTemplate = createElement(EmailTemplateResetPassword, {
      name: vendor.name,
      resetPasswordLink: "www.google.com",
    })

    await ctx.runAction(internal.email.emailClient.sendEmail, {
      to: vendor.email,
      subject: "hello",
      emailTemplate: emailTemplate, // removing this works 
    })
Was this page helpful?