Replies: 3 comments
|
If your goal is to prevent multiple requests at the same time, hx-sync could be a good fit If you really wish to toggle the |
0 replies
|
You can also use the loading-states extension <div hx-ext="loading-states">
<button hx-get="/demo" hx-target="#outcome" data-loading-disable>
Click me</button>
<div id="outcome"></div>
</div>See it in action in this codepen |
0 replies
|
A bit late but you can try the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to disable a button while a request is still inflight to prevent multiple requests to be fired?
All reactions