Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
5 replies
AldiBoi

Trpc useQuery keeps refetching even with no errors (I am getting back data every time)

Hey everyone, I tried looking into why this might happen, and either dont know enough about it to describe it or have a peculiar issue.
In my client side component, I have a useQuery from trpc/react/. Whenever I call my procedure with parameters, (two Dates in my case), my procure spam calls, although it returns data each time. I am at a loss, and have been looking for docs for this. Any pointers to what might be going on would be appreciated. (Images otw)
Was this page helpful?