Htmx 2.0.4 Released
91–100 of 136 posts
Re: Htmx 2.0.4 Released
#92Earlier quoted context omitted.
This is why I think semver is impossible to do in practice.
> This is why I think semver is impossible to do in practice. The semver docs explicitly address this scenario. If a change in minor update breaks compatibility release a new minor update to revert the change.
Re: Htmx 2.0.4 Released
#93Earlier quoted context omitted.
Each comment should be entered into the code then committed. That commit then should trigger the CI build. That should then upload the static assets to the CDN. It's clearly the optimal solution.
That's the most nonsensical bs I've read in a while do you even know what CI is? Can you break down line by line what this probable CI script you're supposing looks like and explain business justification why a static file would ever be uploaded more than once?
Re: Htmx 2.0.4 Released
#94Earlier quoted context omitted.
Go ahead and tell me how cacheable your SSR page is. If it was a static file? Oh yeah it never changes! How convenient! Maybe that's the point! People who promote SSR are simply trying to rope frontend devs into their P2 or P1 incident responses and use them as whipping boys. This shit has to stop. If you don't suspect your web devs are doing all kinds of cache-busting dog shit on your backend ruining your performanc…
Why can't you use HTMX with a static back end? It's a front end library?
HTMX is not generally used standalone and I'll leave this question at that :)
Re: Htmx 2.0.4 Released
#95Earlier quoted context omitted.
Why can't you use HTMX with a static back end? It's a front end library?
I'll let someone else go down this rabbit hole with you. You've responded quite a bit to this thread which is curious. HTMX is not generally used standalone and I'll leave this question at that :)
Re: Htmx 2.0.4 Released
#96Re: Htmx 2.0.4 Released
#97Do some people have examples of interactivity they were able to replace with Htmx? For me, I've been able to get turbo style links with the boost to get nice page transitions. I can also see how I could use the class-tools extension to enable buttons to open dialogs etc. I'm curious to see when people say they needed an SPA for interactivity, what interactive features Htmx can already do and when do we need to break…
Don't bother with libraries like this.
Re: Htmx 2.0.4 Released
#98Do some people have examples of interactivity they were able to replace with Htmx? For me, I've been able to get turbo style links with the boost to get nice page transitions. I can also see how I could use the class-tools extension to enable buttons to open dialogs etc. I'm curious to see when people say they needed an SPA for interactivity, what interactive features Htmx can already do and when do we need to break…
And it’s fine? htmx allows you to write JavaScript. It’s probably one line, I don’t think everything you can come up with needs to be part of htmx.
It’s not all or nothing.
Re: Htmx 2.0.4 Released
#99> Calling htmx.ajax with no target or source now defaults to body (previously did nothing) This one jumped out to me as an interesting one for a patch release. Changing the default behavior feels like a breaking change, though hopefully there weren't sites expecting an ajax call to not do anything.
Actually this was just a stupid bug I introduced in 2.0.3 which was found soon after 2.0.3 shipped. I fixed a bug that allowed ajax api to target body and blow away your whole page in error if one of the selectors you pass in was not found. But It broke the default no source and target behavior but this is now fixed that 2.0.4 is shipped
Re: Htmx 2.0.4 Released
#100Do some people have examples of interactivity they were able to replace with Htmx? For me, I've been able to get turbo style links with the boost to get nice page transitions. I can also see how I could use the class-tools extension to enable buttons to open dialogs etc. I'm curious to see when people say they needed an SPA for interactivity, what interactive features Htmx can already do and when do we need to break…
I tried HTMX but found it too restricting. It's great if you just want to load a portion of the page. Maybe if you have an up-vote, just send the request and replace the icon with a gold icon. But I want things like an on-site calculator. I load in products and prices, users can adjust sliders to change the quantity and relevant number is calculated. I don't want to use HTMX for this to call the server each time, I w…
HTMX is really only about swapping out the elements on the page and pushing updates to the server, which in this case might just be lazy loading the calculator component that contains Alpine attributes and Tailwind elements, and HTMX only if there are elements to swap or you need to save state to the server.