icy.icicle
How to refetch data for a query when a mutation is performed in a different component?
@_typedef Not the most optimal solution, but check out what @alexkatt does: https://trpc.io/docs/client/react/useContext#invalidate-full-cache-on-every-mutation
I hate it, but it will refetch every query on the page every time there is a mutation
10 replies