Jack Fischer
Jack Fischer2y ago

Show a spinner when any mutation is loading?

Looking to show an activity spinner in the header of our application whenever a mutation is in flight (Hoping this will be easier than showing it in every conceivable place to say that your request is loading). There might be a few ways to do this, but any recommendations for minimal boilerplate?
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jack Fischer
Jack Fischer2y ago
Oh wow this is perfect thank you. Do you know if there's a way for mutations specifically? Or alternatively, a way to add some "middleware" to useMutation to control a semaphore in the background?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jack Fischer
Jack Fischer2y ago
Ahh reference docs perfect. Thank you for this.