King Dice
King Dice2y ago

Question about trpc revalidation method

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()?
1 Reply
sachin
sachin2y ago
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

Did you find this page helpful?