https://htmx.org logo
Is it possible to use htmx to do polling, then at ...
# htmx-general
e
Is it possible to use htmx to do polling, then at the end of polling, redirect and while the redirect is happening, stop polling? I tried setting
HX-Redirect
and returning a response code of
286
, but it seems that doesn't work. I looked at the code and I think it's because this block: https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L3010 returns before it gets to the line checking for
286