King Dice
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