mysterious-toddler-20573
01/04/2021, 10:50 PMmysterious-toddler-20573
01/04/2021, 10:50 PMsalmon-xylophone-28580
01/04/2021, 10:52 PM200 needed? If the server uses 302, then htmx does the redirect only of the snippet. Why is providing hx-redirect not enough?mysterious-toddler-20573
01/04/2021, 11:02 PMgorgeous-ghost-95789
01/05/2021, 12:23 AMadamant-exabyte-92636
01/05/2021, 12:28 AMX-IC-Redirect response header in htmx. There is however a HX-Redirect response header listed in the htmx documentation (https://htmx.org/reference/#response_headers)?mysterious-toddler-20573
01/05/2021, 12:56 AMmysterious-toddler-20573
01/05/2021, 12:56 AMadamant-exabyte-92636
01/05/2021, 1:09 AMcolossal-glass-79762
01/05/2021, 7:28 AMcolossal-glass-79762
01/05/2021, 7:30 AMbig-airline-13935
01/05/2021, 7:48 AMHX-Redirect response header.colossal-glass-79762
01/05/2021, 8:02 AMadamant-exabyte-92636
01/05/2021, 10:04 AMic-action and related attributes did, the ic-add-class, ic-remove-class, etc. If you think about it, where does it end? Do you just keep adding attributes for everything you want to do, especially client-side stuff? Why must there be a bespoke attribute for add/removing a class, as opposed to many other client side actions? Granted, the hyperscript thing does feel a little 'open-ended', compared to just looking up the appropriate attribute to do a specific thing, but ultimately I think it is the right direction. The new extension framework is also a great idea imho, because the alternative means that the core of htmx becomes bloated with stuff that's only relevant to some people or even worse, only relevant to a particular style/fashion of doing things right now, but 2/3/5 years from now, it might be completely out of fashion. I've seen this happen with many other frameworks in the past, that tried to pack too much stuff into the core framework. Ok wow... this turned into a bit of a long rant... sorry π .. I'd love to hear what other folks think of this as wellcolossal-glass-79762
01/05/2021, 10:11 AM... where does it end ...
Fair point. and I totaly agree with you that htmx is better off without a deluge of attributes for every possibility under the sun.
However I do think there are certain bits that are fundamentel and should be retained such as the afforementioned HX-Redirectcolossal-glass-79762
01/05/2021, 10:16 AMmysterious-toddler-20573
01/05/2021, 1:01 PMHX-Redirect is staying, I just took out the hyperscript docs showing how to reimplement it. The extension mechanism has worked out pretty well, allowing us to experiment with other ideas without blowing out the core, and the javascript api has also firmed up pretty nicely when you need to do some scripting.mysterious-toddler-20573
01/05/2021, 1:02 PMmysterious-toddler-20573
01/05/2021, 1:09 PMmysterious-toddler-20573
01/05/2021, 1:09 PMcolossal-glass-79762
01/05/2021, 1:35 PMmysterious-toddler-20573
01/05/2021, 5:45 PMadamant-exabyte-92636
01/05/2021, 5:49 PMmysterious-toddler-20573
01/05/2021, 9:02 PMmysterious-toddler-20573
01/05/2021, 9:04 PMmysterious-toddler-20573
01/05/2021, 9:04 PMgorgeous-ghost-95789
01/05/2021, 9:25 PMmysterious-toddler-20573
01/05/2021, 9:26 PMmysterious-toddler-20573
01/06/2021, 3:50 AMbillions-rain-29850
01/06/2021, 7:27 AMdefaultSettleDelay is set to 100 by default? May I change it to zero? I couldn't find any disadvantages in my _hyperscript/htmx powered app. And MathJax (https://www.mathjax.org/#demo) re-rendering after pageload/swapping/htmx-magic is much more responsive.