𝚁𝚘𝚐𝚞𝚎 𝙰𝚕𝚎𝚡𝚊𝚗𝚍𝚎𝚛
Enable both `useQuery` and a raw `query` from the frontend (for use in async validation)
Hello everyone, some context:
Question: In
mockDbEmailCheck
, I'd like to be able to run a raw query against trpc: something like const emailIsUnique = await trpc.xxx.emailIsUnique.query({email})
. Is there a way to execute raw trpc queries from the frontend, as well as maintain the useQuery
tanstack query wrapper?
Essentially is it possible to create this:
Thanks everyone!6 replies