You can swap multiple elements with targeting too: `x-target="comments comments_count"`, but, yeah most of the time `x-sync` is better.
52 karma · joined January 13, 2023
github.com/imacrayon twitter.com/ima_crayon
HTMX for example requires that a successful form submission respond with a 200 status, but many applications (most?) will 302 redirect to a new page to prevent duplicate form request on refresh.
https://www.reddit.com/r/htmx/comments/1ehjw7v/comment/lg09w...
I’ve tried to iron out any footguns or server requirements I’ve bumped into while using HTMX & Hotwire in my projects.