tRPCttRPC
Powered by
dotdotdotD
tRPC•3y ago•
3 replies
dotdotdot

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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to refetch a call made on the server
noahNnoah / ❓-help
3y ago
How to refetch data for a query when a mutation is performed in a different component?
WOWWO / ❓-help
3y ago