by DoesntMatter22 · 3y ago · 0 comments
Also as the project got larger there was a lot of issues with like "Wait, why isn't this loading? Oh man someone changed the name of a div I was using".
It's just not as clear when things stop working compared to most JS frameworks (which I hate, hence my interesting in HTMX).
I think for smaller projects it can be decent though.
This would solve a couple potential issues:
- Identifying that the element is used for HTMX swaps
- Warning anyone that changing this attribute will break said HTMX swap
Could you not fetch that data separately from the patterns htmx provides and do some light parsing/rendering logic client-side?
The ids changing is annoying tho!
If you think that's easy then you'll love HTMX
[1]: https://pentacent.com/blog/date-time-inputs-with-alpine-js/