Blitz
Explore posts from serversCDCloudflare Developers
•Created by Blitz on 7/22/2024 in #general-help
Clarification regarding response time metrics
When i execute a query in D1 console, i see that the response time says ~ 1.5s and the query time is ~150ms
I was under the impression that the latency shouldn't be severe as it places it at a location which is close to my region, but a traveltime of ~1.35s is extreme. Is this a thing with the console or would this be the performance in aplications as well?
5 replies
TTCTheo's Typesafe Cult
•Created by Blitz on 8/15/2023 in #questions
Need help with writing a function that accepts a trpc client router
got this so far, but a router with all these routes defined raises a veryyy long type error. so im assuming im doing something very wrong. Here is the full trace. been trying to make this work for so long now. im trying to build a TRPC reliant CMS
2 replies
avoiding used more hooks than previous render
I understand whats causing the error in my code, im checking if id is defined before calling useQuery as it requires it to be passed in.
How do i make sure useQuery is only called when is becomes defined, but in the same time calling it before the null check of id?
5 replies