senbonzakura123486
Explore posts from serversTTCTheo's Typesafe Cult
•Created by senbonzakura123486 on 10/27/2023 in #questions
`createTRPCProxyClient` vs `createServerSideHelpers`
I see T3 app router is using
createTRPCProxyClient
for server-side helper, why? what is the difference between it and createServerSideHelpers
. I'm using createServerSideHelpers
right now so i was confused. According to trpc
's documentation, shouldn't we use createServerSideHelpers
instead since the client and the server are in the same app?1 replies
TTCTheo's Typesafe Cult
•Created by senbonzakura123486 on 4/30/2023 in #questions
How do I skip build step by files changes?
I want to prevent build step triggered on Vercel evetime I update files like Readme or .vscode
I tried to google for it but only found solutions for skipping build by branches but not by files changes. Tried .vercelignore but it is useless, it just excludes file from build, build still trigger anyway.
5 replies
TTCTheo's Typesafe Cult
•Created by senbonzakura123486 on 12/4/2022 in #questions
Help! I'm building small wiki app with Prisma and being stuck at paginate function.
It's mind boggling that Prisma doesn't have something so common that is count total record for all page in paging. I search on on their GitHub and found out that they have this issue opened for 1 year, and in the mean time user have to query to database 2 times, 1 for count all and 1 for paginated data. This makes me wonder that which one is better, "count 300 records then get 20 records for 1 page" or "get all 300 records with no paging."? Is there any better way to solve this? Should I wait for this issue https://github.com/prisma/prisma/issues/7550 to be solved?
21 replies