dead-brownD
Refine2y ago
18 replies
dead-brown

Invalidate a different resource with useDelete

I have a component that represents editing a single instance for a resource called 'transactions'. From that interface, I have the ability to delete instances from another resource called 'transaction-items'. How can I invalidate the "edit" query for the 'transactions' resource whenever I delete from the 'transaction-items' resource such that the details interface refreshes?
Was this page helpful?