Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
What was the reason for removing req, res from context? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
JulieCezar
What was the reason for removing req, res from context?
What was the exact reason for doing so
?
While implementing a simple rate limiter like this
:
https://github.com/vercel/next.js/tree/canary/examples/api-routes-rate-limit
I found a use case where I needed the res object
, because of which I had to change the context to include it
, similar to how it was before
. Is there some other way around this or would it be better to bring it back
?
GitHub
next.js/examples/api-routes-rate-limit at canary · vercel/next.js
The React Framework
. Contribute to vercel
/next
.js development by creating an account on GitHub
.
Theo's Typesafe Cult
Join
26,268
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Creaete T3 No Req or Res in TRPC context
TTC
Theo's Typesafe Cult / questions
2y ago
What's the reason for having the prisma singleton in the context?
TTC
Theo's Typesafe Cult / questions
3y ago
Accessing req & res in Trpc + Next.js
TTC
Theo's Typesafe Cult / questions
4y ago
trying to access req and res in trpc query
TTC
Theo's Typesafe Cult / questions
4y ago