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

chore: update trpc to use server caller #814

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

juliusmarminge
Copy link
Member

@juliusmarminge juliusmarminge commented Dec 29, 2023

moves server caller to use createCaller now that we've added the ability to pass it a createContext function

Note

I will wait for PR (trpc/trpc#5244) to be merged then revert to using the next tag

@juliusmarminge
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@juliusmarminge
Copy link
Member Author

cc @RhysSullivan iirc you preffered the server caller approach so I think you'll like this change. Reason I didn't like this before was the nested awaits required when you had async context (see trpc/trpc#5244 (comment)) , but that's fixed by allowing the createCaller function be passed a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant