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

Is there react query integration? #227

Open
talksik opened this issue May 12, 2024 · 4 comments
Open

Is there react query integration? #227

talksik opened this issue May 12, 2024 · 4 comments

Comments

@talksik
Copy link

talksik commented May 12, 2024

Does anyone have an example of integrating a twirpscript client with react query to be type safe like trpc does?

@tatethurston
Copy link
Owner

There isn’t a react query integration I’m aware of, but you could share your example here if you do one. The generated twirpscript client is already type safe.

@talksik
Copy link
Author

talksik commented May 16, 2024

Gotcha @tatethurston

I will let you know if I can get my typescript skills back to do something like trpc did.

I am sure someone can chime in here as this post gets more views.

@tatethurston
Copy link
Owner

What's the developer experience you're looking for?

@talksik
Copy link
Author

talksik commented May 16, 2024

Here is a good example: TRPC + React query integration

This would mean we don't have to specify the queryKey and queryFn for everything in addition to a lot of other niceties of being type safe such as doing type safe react query refreshes.

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

No branches or pull requests

2 participants