invalidateQueries | tRPC

🚀 We've just released a beta version of
which helps you keep track of changes in your tRPC API. Check it out at
.
This is documentation for
tRPC
, which is no longer actively maintained.
For up-to-date documentation, see the
(
10.x
).
A typesafe wrapper around calling queryClient.invalidateQueries(), all it does is to call queryClient.invalidateQueries() with the passed args. See react-query docs if you want more fine-grained control.

Example code​

    Example code