Çağlar
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Çağlar on 3/24/2024 in #questions
what handler do you use to seperate trpc queries from client?
What can I do to isolate trpc queries from the client? I want to create a cleaner logic, such as invalidating the relevant context or suppressing toast in cases such as onSuccess and onError after the mutate operation.
3 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 2/4/2024 in #questions
Is this tRPC API structure good to go?
1 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 5/25/2023 in #questions
How to migrate t3 from v6 to v7
I have been using t3 stack structure since v6 but now I want to migrate it from v6 to v7. Is there any helper to do it?
4 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 3/24/2023 in #questions
How to override and update session callback's session object after signIn callback?
The thing that I want to do is to get the user data with token from the server and put it on the session.
4 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 3/21/2023 in #questions
How to store session in DB using credentials provider?
How to store session in DB using credentials provider? Otherwise, I cannot manage the user's logout from the server side.
3 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 3/11/2023 in #questions
What causes infinite fetch or query?
I was doing some editing on the schema, using trpc.category.getAll.useQuery() and suddenly infinite refetch started. Anyone know why?
11 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 2/4/2023 in #questions
Does T3 Stack immediately connect to the database and if not, how can I catch error on client?
1 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 1/27/2023 in #questions
Best practice for Admin dashboard?
I want to make an admin special page, but on the client side, I didn't know how to check if the user is admin, how can I do it? Should I check if the id from ctx is admin with getServerSideProps or should I check with trpc query? I want to do something like layout
36 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 1/3/2023 in #questions
What is the best practice to upload file using multer and create a record in Prisma
Recently I have been obsessed with uploading files with trpc, I have files that I do not want to keep on the cloud server and I want to keep them locally. I've done the uploads with Multer, but how do I associate them to my Prisma, for example Patient table? What is the best practice for this situation?
16 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 12/11/2022 in #questions
Is my approach correct to publish posts as 'published .. time ago' and SSR or tRPC?
10 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 12/3/2022 in #questions
What is the best practice for unstable_getServerSession()?
What is the best practice for unstable_getServerSession()? Should I get the data using getServerSideProps in a layout and do a state drill? Or return the data with unstable_getServerSession() in getServerSideProps for each component it needs?
21 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 12/3/2022 in #questions
How to modify useSession data type?
I am using credentials and providers then returning user, I was trying to put some user infos into session but session.user always returning
60 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 11/30/2022 in #questions
What am I suppose to do If user email exist on db that coming from provider? How to handle error?
I couldn't find any information about handling errors when user email (signed up with credentials) and provider email matches. How do I handle like "There is a user that you are providing from Discord" etc.
8 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 11/26/2022 in #questions
I cloned the create-t3-turbo and I did pnpm i but getting error from AppRouter {acme api}
4 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 11/25/2022 in #questions
Should I upgrade my Next12 T3 project to v13? I am not going to use App folder
I do want to upgrade my project next12 to v13 but I am worrying to do it. Will there be any problems? I want to use Next Font
12 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 11/23/2022 in #questions
I deployed my project on Vercel and getting 500 error [id].tsx page but in localhost its fine
How can I fix that? https://guest-book.caglark.dev
21 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 10/28/2022 in #questions
I just installed tailwindcss forms package but it breaks my input styles
2 replies
TTCTheo's Typesafe Cult
•Created by Çağlar on 10/19/2022 in #questions
Why is my t3 app running so slow?
42 replies