Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@robojs/trpc - Support for createContext w/ type inference and all #345

Open
Pkmmte opened this issue Oct 31, 2024 — with Volta.net · 0 comments
Open

@robojs/trpc - Support for createContext w/ type inference and all #345

Pkmmte opened this issue Oct 31, 2024 — with Volta.net · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest plugin

Comments

Copy link
Member

Pkmmte commented Oct 31, 2024

Points: 3


@robojs/trpc currently handles the route and proxies the creation of the t instance. While this is great and all, we've yet to abstract the .context function that comes with initTRPC before create.

https://trpc.io/docs/server/context

We should mimic that and make it chainable to maintain API compatibility with initTRPC. The existing context should be merged with the user-provided context.

@Pkmmte Pkmmte added enhancement New feature or request good first issue Good for newcomers hacktoberfest plugin labels Oct 31, 2024 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest plugin
Projects
None yet
Development

No branches or pull requests

1 participant