Check if document exists once?
I'm running a document management app and before I upload the documents to uploadthing, I want to check if a task containing said documents exists.
I created a query, but when using it via "useQuery" I have to define the argument at hook call, but I don't know it until the user submitted it.
Now I somehow want to call
checkTaskExists({taskFullId) from my onSubmit functionIs that somehow possibe? Maybe via Actions?
