King Dice
King Dice
TtRPC
Created by King Dice on 8/9/2023 in #❓-help
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()?
4 replies
TtRPC
Created by King Dice on 8/8/2023 in #❓-help
How to refetch based on different event
I have a procedure that fetches all products, I have another one that deletes a project given it's ID, these two are used on the same page, how can tell tRPC to rerun the allProducts request when a delete happens. currently I need to refresh to see the product get deleted, in case that's not what's supposed to happen please tell me. I am using the pages router and tRPC v10
4 replies