Change status of useMutation from 'success' back to 'idle'

Hiya, I have a mutation for creating stuff that can run a few different ways on a page, and I want to change its 'success' status back to 'idle' after 5 seconds. Is there a programmatic way to change a mutation's status from 'success' back to 'idle'?
Alex / KATT 🐱
Alex / KATT 🐱518d ago
Mutations | TanStack Query Docs
Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects. For this purpose, React Query exports a useMutation hook. Here's an example of a mutation that adds a new todo to the server:
Nick
Nick518d ago
thanks Katt, I realize most of my questions can be answered by learning React Query