You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] How to globally add context (e.g., user locale) to all requests? #19
First off, thanks for the great work on forge-trpc - it's significantly improved our development experience!
I have a question regarding requests: Is there a recommended way to automatically include additional context, specifically the user's locale, with every request? The goal is to access this locale within the server-side context/handler for each mutation.
Currently, I'm passing the locale manually with each call. I'm wondering if there's a cleaner, global approach, perhaps by extending a shared context or using some form of middleware provided by the adapter.
changed the title [-][Question] How to globally add context (e.g., user locale) to all requests?**[/-][+][Question] How to globally add context (e.g., user locale) to all requests?[/+]on Apr 23, 2025
Activity
[-][Question] How to globally add context (e.g., user locale) to all requests?**[/-][+][Question] How to globally add context (e.g., user locale) to all requests?[/+]