autofires
autofires
DDeno
Created by anggoran on 4/14/2024 in #help
Partial with Forms
No worries, appreciate you’re a one man band going over and above at the moment! I’m sure I can do something clever with islands in the mean time.
15 replies
DDeno
Created by anggoran on 4/14/2024 in #help
Partial with Forms
Are there any non-island reliant patterns for demonstrating a post is ongoing to the user? As it’s a background action there’s no obvious browser loading behaviours so it can be a bit confusing to users. Apparently hx-indicator is how this problem is handled in HTMX https://htmx.org/attributes/hx-indicator/
15 replies
DDeno
Created by anggoran on 4/14/2024 in #help
Partial with Forms
I don’t think it’s mentioned in the docs (yet), but make sure your partial route for the form POST also has a GET handler redirecting back to original page or you’ll get odd behaviours (in dev anyway). The partial form post url isn’t “hidden” in the same way as it is with partial nav on anchor tags. Possibly just an issue during dev watch mode when a change will kick off a reload of the partial url as a page.
15 replies