TanStackT
TanStack4y ago
3 replies
sacred-rose

Can I reset all mutation state similar to how I can clear all queries based on key?

I display error or success messages when certain mutations complete. When I switch users, I clear all queries under the
user
key, but this doesn't reset the mutations I have keyed the same way. Then, the current user sees the mutation state of the previous user.
Was this page helpful?