NotZelda
NotZelda
Explore posts from servers
TtRPC
Created by NotZelda on 3/13/2025 in #❓-help
What are the best practices for keeping TRPC and ts-server fast?
Also saw that passing type generics directly into my queries from the router outputs might help, so I’ll give a crack at that.
6 replies
TtRPC
Created by NotZelda on 3/13/2025 in #❓-help
What are the best practices for keeping TRPC and ts-server fast?
My zod types are pretty simple as is. Potentially it’s something else causing it but seams about too coincidental. Might have to deep dive into profiling the two server to see the root cause. Will take a more detailed look into the work already conducted on this front to see what I can learn.
6 replies
TtRPC
Created by NotZelda on 3/3/2025 in #❓-help
How to define per route staleTime on queryClient?
No worries at all, that makes sense. Just wanted to make sure I wasn't missing an existing config option. Appreciate the help
8 replies
TtRPC
Created by NotZelda on 3/3/2025 in #❓-help
How to define per route staleTime on queryClient?
This is correct, but lets say I have 2 components that call the same API route on the same page. Use query will de-dupe this using the queryKey, however its indeterminate which is will take on as the staleTime. I would rather just declare the staleTime once on the procedure and then not have to make sure all my staleTimes are the same for each useQuery hook using the API.
8 replies
DTDrizzle Team
Created by NotZelda on 12/3/2024 in #help
How to dynamically select all columns from one table, and join a single column from another table?
This would only put it in a key labelled the same way as the table. My hope is to be able to return a new combject with some properties combines instead of nested. This can be achieved by labelling each key manually, but no automatic way.
3 replies