Haaxor1689
Using react-query parameters in tRPC for useQuery
Well normally with tanstack query you always write query key, async callback and options in this order but with tRPC wrapper you only pass the value there. It probably would be nice to have overload for queries with no input that only accept options as first argument but since there isn't one, passing undefined is fine. I think it even is in documentatuob like that.
5 replies
setMutationDefaults for optimistic updates
Ok, made a PR with proposed fix 🙂 https://github.com/trpc/trpc/pull/4371
5 replies
setMutationDefaults for optimistic updates
Hmm I found this closed issue https://github.com/trpc/trpc/pull/3528
I guess the adding of
mutationKey
was forgotten about?5 replies