If you wish to disable a button during an htmx request, you can use this snippet:
<button class="button is-primary" hx-get="/example" _="on click toggle @disabled until htmx:afterOnLoad"> Do It </button>
Do It