|
|
|
|
|
by imacrayon
629 days ago
|
|
I actually created https://alpine-ajax.js.org for this reason.
HTMX and Hotwire both have opinionated requirements around the content and status codes that your server returns.
One of the goals with Alpine AJAX is you should be able to drop it into any basic CRUD app and have it working without changing any server code. 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. |
|