SG.dev
CCConvex Community
•Created by SG.dev on 10/18/2024 in #support-community
Issue with Canceling a Scheduled Task – How to Retrieve and Pass Task ID to Frontend
I'm trying to implement a feature where users can schedule a deletion task and cancel it from the frontend, but I'm getting TS errors trying to return the taskId from a mutation:
- What is the recommended way to pass the scheduled task ID to the frontend so the user can cancel the task later?
- Should the task ID be stored in the database instead, or is there a way to return it safely from the mutation?
- Are there any examples or patterns recommended by the Convex team for handling cancelable scheduled tasks from the frontend?
3 replies
CCConvex Community
•Created by SG.dev on 5/4/2024 in #support-community
Resend / Convex: Issue with Deploying JSX in Convex Environment - Unexpected Syntax Error
Can't for the life of me figure out how to resolve this issue. I'm encountering a deployment issue when using JSX within my Convex environment.
I've also added :
"jsx": "react-jsx"
under the compilerOptions
in my /convex/tsconfig.json
Here is the code:
I've also tried just calling the function like this and get the same error:
Any insight would be great, thanks guys!5 replies