https://htmx.org logo
I just feel like "polling + redirect" is a common ...
# htmx-general
e
I just feel like "polling + redirect" is a common pattern. eg I have a delayed job running on my server, I want to check if it's done, and when it's done, I want to send the user to a new page that they now have access to. I could solve it with
HX-Trigger
like you said, but I agree that feels hacky. I could also solve it with load polling, but imo that obfuscates the polling a bit, making it more complicated to understand.
every 1s
makes it pretty clear it's polling, whereas
load delay:1s
doesn't read as polling to me