alex @astahmer.dev · Apr 9

I used to have lots of xxx.queries.ts files (where xxx was the domain) that contained a bunch of queryOptions defined with the query factory pattern.. and it was so verbose, so boilerplate-y, everyone hated having to do this so.. 1/2

1 likes 1 replies

?

Replies

alex · 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...