T
TanStack8mo ago
adverse-sapphire

Is it possible to have mutation queue that will run until the queue empty ?

I have a question on modal and on each question I'm sending the answer to backend. because the navigation to question is fast, user can finish going through the question before the mutation finishes and close the modal. so Is a way to handle this case ?
1 Reply
optimistic-gold
optimistic-gold8mo ago
Your question is ambiguous, try to explain in more detail. Atm I guess you navigate before the mutation finishes, so, just await the mutation before navigating?

Did you find this page helpful?