bigskysoftware / bigskysoftware/htmx
Add connection failure handling to examples
Open
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
Feature request:
Since htmx heavily relies on client/server interaction, I think that adding an example of how to handle client connection failures would be something that adds value to the project.
It looks like the event that gets emitted for this is: htmx:sendError
Would this be done by listening for this event and then triggering some state in the application like an overlay with a message?
Bonus: Polling the server for connectivity (sending the last failed request) and then removing the connection failure overlay would be useful for a user to know when the app is working again.
Contributor guide
Assessment
This issue has not been assessed yet.