Youssef Gaber

Results 31 comments of Youssef Gaber

@t1mmen oh that's awesome that that's possible. Great to hear! We're a bit consumed now working on v4 of ts-rest, but for sure we'll evaluate this afterwards.

Thank you for your proposal! Pretty well thought out, but you've overlooked a major point, which is why @ts-rest/react-query exists in the first place, and which solves this entire use-case,...

@toteto I left you some comments on the PR. However, I still don't believe much in the utility of throwing on `fetch` except to trigger an error in tanstack query....

And yes, regarding the incorrectly typed `error` object in `@ts-reset/react-query`, I am aware of that, however it is too late to fix now without a breaking change. So we'll be...

@ivan-kleshnin there are `.query()` and `.mutation()` functions exposed that will fetch directly. So you can do `await client.getPost.query()`

Seems like it's intended because there's no other way to encode non-string values, but the corresponding server functionality was not developed to parse the JSON. For now you can work...

We've had this on our roadmap for ts-rest v4, and actually has been something we've been wanting for our app too. The way we've been doing it so far is...

The way I'd also like to do it, is to allow these transformers to consume and modify any part of the requests and responses. I'm not sure if anyone uses...

The big challenge here is by introducing the concept of opaque transformers, you lose the ability to use the contract as source of truth of what an API truly sends...