T
TanStack10mo ago
like-gold

Invalidate / clear mutation after success?

I pass meta fields into mutation and adjust styles based on the active mutation state, but need this to be cleared after success. So what is the approach to invalidate/clear mutation back to an empty state?
1 Reply
like-gold
like-goldOP10mo ago
Nvm, guess I can just call .reset lol

Did you find this page helpful?