title: laravel livewire redirect method problem with wire:loading
body: <p>I have button component and when it loading it shows spinner (wire:loading) and when not loading it shows icon (wire:loading.remove).</p>
  <p>Problem is: when button calls redirect method this button shows nothing. It is like redirect disables component.</p>
  <pre><code>&lt;button wire:click=&quot;trigger&quot; title=&quot;{{$text}}&quot; class=&quot;btn btn-{{$color}}   float-right &quot; &gt;
      &lt;div &gt;
          &lt;div wire:loading&gt;
              &lt;span class=&quot;spinner-border spinner-border-sm&quot; role=&quot;status&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div wire:loading.remove&gt;
              @if ($icon)
                  &lt;i class=&quot;fas {{$icon}}&quot;&gt;&lt;/i&gt;
              @endif
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/button&gt;
  
  
  
   public function trigger(){
  
          if(!empty($this-&gt;event)){
              $this-&gt;emit('show-modal');
              $this-&gt;emit($this-&gt;event, $this-&gt;params);
          }
  
          if($this-&gt;url !== null){
              return redirect()-&gt;to($this-&gt;url);
          }
  
  
      }
  
  
  Livewire version: [v1.3.3]
  Laravel version: [v6.18.35]
  Browser: [Chrome]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/aA5nC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aA5nC.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/kLlMB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kLlMB.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/M5IhE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M5IhE.png" alt="enter image description here" /></a></p>