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

How to use createTRPCHandle with custom / local handle logic? #46

Closed
caschbre opened this issue Dec 5, 2022 · 4 comments
Closed

How to use createTRPCHandle with custom / local handle logic? #46

caschbre opened this issue Dec 5, 2022 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@caschbre
Copy link

caschbre commented Dec 5, 2022

The examples have createTRPCHandle completely taking over the svelte server handle hook. How would we got about mixing our own custom logic in the handle hook? I believe in 2.x we would do something similar to what's described in this pull request. I realize quite a bit has been refactored with the latest 3.x version and that example doesn't work anymore, so looking for an alternative / updated approach?

@icflorescu
Copy link
Owner

Have a look at the sequence helper function in the SvelteKit docs.
Maybe I should put the link in our docs as well.

@icflorescu icflorescu self-assigned this Dec 5, 2022
@icflorescu icflorescu added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 5, 2022
@icflorescu
Copy link
Owner

Using the new SvelteKit sequence helper is a lot cleaner than our previous approach in 2.x, IMO.
Please feel free to comment/reopen if this doesn't answer your question.

@caschbre
Copy link
Author

caschbre commented Dec 5, 2022

Thanks! Yeah, a simple note in the docs would be perfect.

@icflorescu
Copy link
Owner

Added, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants