Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
26 replies
Jakub

How should you approach invalidating queries in trpc?

Is is possible to create a onSuccess handler inside procedures? I don't want to write the same invalidating onSuccess function on every query across my application. Creating reusable hooks kinda goes against the ease of trpc. Is there a good way to approach this?
Was this page helpful?