4 ms·
I think it would be a good idea in these situations (many cooks in the kitchen) to use a data attribute for each HTML element that uses HTMX, such as `data-htmx
by arcanemachiner 3y ago
I think it would be a good idea in these situations (many cooks in the kitchen) to use a data attribute for each HTML element that uses HTMX, such as `data-htmx-id` to reference your elements instead of just using the `id` attribute (which already carries a lot of contextual baggage).
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
- DoesntMatter22 3y agoSure, there are ways to work around it but it's just fairly brittle in that way, those measures help but on a large project people are going to be breaking things relatively frequently.
- deleted 3y ago[deleted]