Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMX issues #164

Open
FroMage opened this issue Sep 8, 2023 · 0 comments
Open

HTMX issues #164

FroMage opened this issue Sep 8, 2023 · 0 comments

Comments

@FroMage
Copy link
Contributor

FroMage commented Sep 8, 2023

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant