MadaShindeInai
MadaShindeInai
Explore posts from servers
TtRPC
Created by MadaShindeInai on 8/17/2024 in #❓-help
Prefertch() privateProcedure (Clerk) in gSSP
No description
3 replies
TtRPC
Created by MadaShindeInai on 11/5/2023 in #❓-help
Automatically notify about excess queried fields.
Hello! Imagine very common situation: We picking "user" with 10 fields, but using only 3 of them in component. Is there a way to automatically identify unused fields to be able to remove them? Is tRPC Drift about it?
2 replies
TtRPC
Created by MadaShindeInai on 9/6/2023 in #❓-help
tRPC in Next without api rotes
Hello! I have NextJS app that gets data in gSP using some third-party client. This data comes untyped, and i'm thinking if tRPC can help me to manage this behavior in a better way, than just zod validation. One more thing - i do not want to make some public endpoint for quering this data. But I can't find any examples of tRPC usage in NextJS without API routes. Does it mean that tRPC do not fit my task as it actually "a gates of BE part"?
3 replies
TtRPC
Created by MadaShindeInai on 5/29/2023 in #❓-help
T3 app tRPC external calls
Currently i'm just making Post request and formatting my payload to
{
"0": {
"json": {
....data <--- actual data.
}
}
}
{
"0": {
"json": {
....data <--- actual data.
}
}
}
format. It works. Saw that people use trpc-openapi for that. Is it really necessary? What are downsides of my approach?
10 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
6 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/13/2023 in #questions
Removing unused imports
A rather annoying and controversial thing that was built into version 7.3.2. As far as I can see, this is disabled by default in the latest version. Maybe someone will tell you what was responsible for enabling it in older versions? Probably something connected with "prettier-plugin-organize-imports", but i'm not sure thinkies
4 replies