trpc response time
I have a situation where I need to record the response time of a request. If I wasn't using trpc, I would just record the start time, await the response and record the end time. Is there a way to do this, while using trpc?
2 Replies
Maybe there is a better solution, but you can watch
.isLoading
and record time when in changesI think that makes sense
Seems accurate, thanks for the suggestion
I think it may need to watch
isFetching
rather than isLoading
but I need to look into it more