htmx
htmx copied to clipboard
loading-state ext width HX-Redirect
When using “hx-post” within a form and the loading-state ext the loading behavior works as expected.
but when the backend returns a “HX-Redirect” header the loading state stops, because it understands that the request was fulfilled.
shouldn’t it keep the loading state until the redirect completes? Is this a bug or this behavior should be achieved using some other configuration?
@1cg could you help here?
I was thinking about making a change to loading-state ext to support this behavior but not pretty sure if there is any side effect on doing it
hey @nykolaslima i'm kind deep in the 2.0 release, but can maybe look at this near the end of January. In the meantime, don't be afraid to hack up the loading-state extension, it isn't that complicated and you can always run your own custom extension that does what you need.