backbone
how to set request timeout in client
createProxyClient has no option about timeout like axios does.
Just in one router request (query or mutate) use AbortController.But I do not want each router request to add this signal.It is boring.Any solutions?
6 replies
tRPC doesn't support redirect
I use tRPC & @trpc/server/adapters/express.
procdure.query({ctx: { res }} => {
res.redirect('xxx')
})
this will stop node process and some errors like:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client.
But if I just use expressjs,it does not happen.
6 replies