T
tRPC

❓-help

Question about trpc revalidation method

YYusuf8/9/2023
alright I have a question, why can tRPC detect changes from the DB and refetch. but when I mutate the DB from the client I need to manually invalidate()?
Ssachin8/10/2023
trpc doesn’t detect changes from the DB, react query just refetches eagerly (many times unnecessarily, so even when data has not changed) open the network tab and you’ll see what’s happening

Looking for more? Join the community!