htmx
htmx copied to clipboard
When there are multiple requests happening at the same time, sometimes the `htmx-request` class may not be removed
When using the same loading indicator for multiple parallel requests in htmx, there is an issue where the internal request count here can inadvertently become negative, leading to the htmx-request class not being removed from the designated element(s) once all requests have completed.
https://github.com/bigskysoftware/htmx/pull/2439 fixes this issue.
I ran into this same issue. @tarunbhardwaj, do you plan on working on your fix anymore, or should someone else maybe look into picking it up?
@jwendel I am looking for some suggestion on how to reproduce this race condition in test