title: Stop chrome from reloading a tab in loop
body: <p>I'm creating a Chrome extension and one of the actions is to reload the current tab after changing the URL. This is the code below:</p>
  <pre><code>submitChoices.addEventListener(&quot;click&quot;, async () =&gt; {
    let [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
    let url = fieldChoices(tab); // This returns the new Url based on some choices
    chrome.tabs.query({ active: true, currentWindow: true }, function () {
      chrome.tabs.update(tab.id, { url });
      chrome.tabs.onUpdated.addListener(function () {
        chrome.tabs.reload(); // Issue seems to be here
      });
    });
  });
  </code></pre>
  <p>The problem I'm having is that the chrome.tabs.reload(); seems to be stuck in a loop. The tab keeps on reloading and only stops after I change tabs or switch focus to another window/app.
  Any tips?
  Thank you!</p>