You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to delete an element after an htmx call, and so from the POST method I returned null and set hx-swap="delete" but 204 responses don't lead to a deletion from htmx. I have to make my endpoint return something. We should find out how to fix this. Or at least an empty TemplateInstance that leads to a 200 instead of a 204 (as is the case when returning null).
I have to choose between extending HxController or ControllerWithUser since they're both classes. This is not ideal since in my case I want both.
Our docs should show an example of this
Our docs should show an example of how to import HTMX from their HTML, such as with a CDN, or web-bundler
Our docs should show validation examples for HTMX
Perhaps we should remove the redirects on POST for HTMX? They don't need to be safe from reloads like regular HTTP.
The text was updated successfully, but these errors were encountered:
POST
method I returnednull
and sethx-swap="delete"
but 204 responses don't lead to a deletion from htmx. I have to make my endpoint return something. We should find out how to fix this. Or at least an emptyTemplateInstance
that leads to a 200 instead of a 204 (as is the case when returningnull
).HxController
orControllerWithUser
since they're both classes. This is not ideal since in my case I want both.The text was updated successfully, but these errors were encountered: