trpc mutation. "await in execute (async)"

No description
No description
No description
No description
8 Replies
gave_one
gave_oneOP8mo ago
what is "await in execute (async)"
peterkyle01
peterkyle018mo ago
try to await api.auth.IserChecker.useMutation() or do await App.mutate( Data)
gave_one
gave_oneOP8mo ago
Sorry for the late response but the problem is It’s is in a use client component If I do that next.js will start screaming at me @peterkyle01
gave_one
gave_oneOP8mo ago
No description
gave_one
gave_oneOP8mo ago
that the await App.mutate( Data) await api.auth.IserChecker.useMutation() this can not word in a client component
gave_one
gave_oneOP8mo ago
trpc :Src -> server -> api -> routers -> auth.ts Being used :Src -> components -> auth -> [ register.tsx. | login.tsx ] The rest of the configuration is default https://github.com/gaveone/expo-A
GitHub
GitHub - gaveone/expo-A
Contribute to gaveone/expo-A development by creating an account on GitHub.
gave_one
gave_oneOP8mo ago
Stack Overflow
Handling 500 Internal Server Error on tRPC Mutation in a Next.js T3...
When calling the auth.UserChecker mutation from my React frontend, the server responds with a 500 error. The mutation is intended to check user credentials during login. Also, the register page is ...
gave_one
gave_oneOP8mo ago
A better isolate of the component
Want results from more Discord servers?
Add your server