8 Replies
what is "await in execute (async)"
try to await api.auth.IserChecker.useMutation() or do await App.mutate( Data)
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
![No description](https://cdn.answeroverflow.com/1234348399994601544/Screenshot_2024-04-28_at_8.39.44_PM.png)
that the await App.mutate( Data)
await api.auth.IserChecker.useMutation()
this can not word in a client componenttrpc :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.
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 ...
A better isolate of the component