title: React query cancel / abort mutation if paused / offline
body: <p>I'm using some mutations in a React Native app. I'd like to set a default behavior for all mutations so when I'm in offline mode and I try to make a mutation, display an error and do nothing. Right now, I've been able to catch this by using</p>
  <pre><code>  mutationCache: new MutationCache({
      onMutate: async (_, mutation) =&gt; {
        if (mutation.state.isPaused) {
          toastError(&quot;Network error!&quot;, &quot;Please check your network connection&quot;);
          mutation.state.status = &quot;error&quot;;
        }
      }
    })
  </code></pre>
  <p>where I set up my <code>QueryClient()</code>, but, when I switch to online mode again, the mutation gets fired. I'd like to avoid this situation, and just abort / discard / cancel the mutation instead of automatically resume it.</p>
  <p>I've also tried calling <code>mutation.destroy()</code> but nothing happens.</p>
  <p>How can I do it? Note I've tried to &quot;force&quot; the mutation status to &quot;error&quot; but I've still getting the same behavior.</p>