peterp
peterp
TtRPC
Created by peterp on 8/4/2023 in #❓-help
Trying to lazy init "createTRPCProxyClient"
Sure!
9 replies
TtRPC
Created by peterp on 8/4/2023 in #❓-help
Trying to lazy init "createTRPCProxyClient"
@alexkatt '@ing' you 🙂
9 replies
TtRPC
Created by peterp on 8/4/2023 in #❓-help
Trying to lazy init "createTRPCProxyClient"
@alexkatt halp me dawg
9 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
Thanks for the help!
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
Abstracting the fetch property in createTRPCClient worked like a charm.
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I guess everyone does
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I can imagine! I see we share investors ;P
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
Btw SpaceDrive looks dope af
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
Thanks! I'll report back
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I'll play around with modifying the fetch implementation passed to "createTRPCClient"
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
or create a custom httpLink
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I'm not using batching, but maybe I can just wrap fetch
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
aaah, cool
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
👀
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I need it in each response, regardless of the context of the request.
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
I'm building a CLI and need to push information down to the client that isn't part of the query or mutation.
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
As an example:
export async function createContext(
opts?: trpcExpress.CreateExpressContextOptions
) {
opts.res.setHeader('x', 'dog')
}
export async function createContext(
opts?: trpcExpress.CreateExpressContextOptions
) {
opts.res.setHeader('x', 'dog')
}
21 replies
TtRPC
Created by peterp on 9/22/2022 in #❓-help
Response headers
🤔 I can see how I have access to req/ response in the context, but does the client have access to those things?
21 replies