T
tRPC

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

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

GgwaiLoFi12/19/2022
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'?
GgwaiLoFi12/19/2022
thanks Katt, I realize most of my questions can be answered by learning React Query

Looking for more? Join the community!

T
tRPC

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

Join Server