青木
青木
TtRPC
Created by 青木 on 3/31/2023 in #❓-help
The type of the second route of the nested route is never
Try to create a nested route using createTRPCRouter
3 replies
TtRPC
Created by 青木 on 6/4/2023 in #❓-help
How does trpc subscription actively close/disconnect in the server?
I am implementing the SSE based subscription feature and I am currently finding issues with not receiving events from client closures in NextJS.
11 replies
TtRPC
Created by 青木 on 6/4/2023 in #❓-help
How does trpc subscription actively close/disconnect in the server?
I don't seem to be able to actively cancel useSubscription in react either?
11 replies
TtRPC
Created by 青木 on 6/4/2023 in #❓-help
How does trpc subscription actively close/disconnect in the server?
The problem arises on the back end.
11 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
my doubt is that for trpc, only the type definition is required when creating the client. Why is this type definition forced to be written together with the server instead of separate?
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
One of our projects has a lot of developers involved and I need to write some checks to make sure all are obeying using type imports, which can be a disaster if someone forgets.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
but in nx, api should be an application, and the application does not import aliases It can be set manually but I prefer to separate them.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
I generally use https://nx.dev for project design. I write an API it should be an app rather than library.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
In the way of importing types (import type from tsrpc_api), once some other code on the server is imported in my code, it will be packaged into the front-end project. I even need to write some tools for security inspections.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
I need trpc to be split into type definition and implementation, not merged together. It is still together in t3, it is difficult for me to encapsulate the framework belonging to our company based on trpc.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
I checked the code inside, not what I want
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
So I'm looking for a solution, if the client of trpc only needs one type file, can I define it manually?
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
I have to import type from my backend code, and I can't distribute GraphQL Schema files like GraphQ L does.
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
Do not use export type AppRouter = typeof appRouter;
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
So, can I declare my own AppRouter for trpc?
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
import type from somebody Import types only, and will not contain code
41 replies
TtRPC
Created by 青木 on 1/9/2023 in #❓-help
How are they defined separately?
import type from is also an imported type, why can't it be alone?
41 replies