What's the best way of preventing an action temporarily while something else is happening?
E.g a slow file upload and prevent the action 'store' from being submitted.
Tried using a public property but this is too slow.
<form wire:submit.prevent="store" enctype="multipart/form-data">
<x-forms.filepond wire:model="file_upload" />
<button wire:click.prevent="store" wire:loading.attr="disabled">
<x-loader wire:loading wire:target="store" class="full-current mr-2 h-4 w-4" />
<x-icons.save wire:loading.remove wire:target="store" class="full-current mr-2 h-4 w-4" />
Save
</button>
</form>