tltl
tltl
Explore posts from servers
TtRPC
Created by tltl on 7/19/2024 in #❓-help
is there a definitive solution to the slow language server/compilation issue?
is there a solution where each individual trpc mutation/query is it's own router? and then I just import and use the appropriate "router" when needed. would that help? I have no need for any of the query invalidation, caching, or nesting "paths", I'm basically just looking to import and run functions on the frontend.
8 replies
TtRPC
Created by tltl on 7/19/2024 in #❓-help
is there a definitive solution to the slow language server/compilation issue?
I run into many errors trying to use xtrpc
InvalidOperationError: A descendant of kind ObjectLiteralExpression was expected to be found.
InvalidOperationError: A descendant of kind ObjectLiteralExpression was expected to be found.
Error: A sibling of kind 357 was expected.
Error: A sibling of kind 357 was expected.
I also see this caveat in the readme
𝕏tRPC may not work properly if your procedure outputs are not explicitly declared. For best results, add .output to all of your procedures (which is a good practice to not leak sensitive info anyways) and enable explicitOutputs in your xtrpc.config.json
Not sure if that's related, but we have zero use of .output in the codebase
8 replies
TtRPC
Created by tltl on 12/7/2022 in #❓-help
How to call TRPC procedures directly, without creating a router and calling createCaller?
gotcha, thanks! ideal interface for me might look like p.createCaller(ctx)(input) i dont want to have to create a router and then call the same method name on the router
13 replies