alex @astahmer.dev · Apr 9

I figured I couple one of my API client lib with tanstack query and since it was almost compatible with what we had, I just refactored the whole codebase in 1 go by inlining 90% of the (1-time use) queries everyone found this approach much simpler and we deleted 4k lines github.com/astahmer/typ...

1 likes 2 replies

?

Replies

alex · Apr 9

oh and one more benefit is that now finding where the API route is defined in the backend is super easy we just have to look for the full URL (hono uses the same pattern) anyway this was not really related to your original tweet but since you mentioned queryOptions that made me think of it! 😄

Yo · Apr 16

Do you allow headers passed? If so do you type them?