tRPCttRPC
Powered by
seN49S
tRPC•3y ago•
5 replies
seN49

async createContext for Express Adapter

Been debugging an odd behavior for the past hour, it seems like that an async function does not work in the express adapter. Is that supposed to work or is that the expected behavior? If this is a bug i can toss together a quick sandbox, but figured I check first whether this is expected or not.

If this is expected behavior, should the async calls happen in middleware instead? Seems a bit at odds. Thoughts?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

TrPC NExt 13 adapter with Express js
Answer OverflowAAnswer Overflow / ❓-help
3y ago
Getting CORS error with tRPC express adapter, locally
rhh4x0RRrhh4x0R / ❓-help
16mo ago