Editing while request is in flight leads to lost events
See original GitHub issue- Set up a form like this
<input hx-post="someURL" hx-trigger="keyup changed delay:1">
- Set up a server that intentionally delays a few seconds before it responds.
- Type “foo”
- Observe the POST happening
- Type “bar” while the server is delaying the response
- Observe server response completing; even observe the UI acknowledge a successful save, if you have that wired up.
- (Optional, for extra effect:) Walk to the kitchen and back
- See everything on page looks successful, navigate away from the page
- Notice that the server never saw “foobar”, only “foo”. You’ve lost data!
I think dirty state existing at a time when a request completes should submit another request immediately.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Censorship On Inflight Entertainment - Who Decides What ...
When a film is released, airlines have the option to show the original or ask for an edited license. If it requires an...
Read more >Flight Delay and Cancellation Compensation - ValuePenguin
Here's what to do when a flight is canceled or delayed, depending upon which type of flight you booked.
Read more >What to do when Google calendar events disappear
Step 3: Save the edited event and press Command + R to refresh your calendar. The calendar should now show the event.
Read more >Create and edit events in Calendar on iPhone - Apple Support
Use the Calendar app to create and edit events, appointments, ... Siri can suggest events found in Mail, Messages, and Safari—such as flight...
Read more >Know What to Expect if Your Flight Gets Delayed or Canceled
If the departure time is impacted by less than an hour, only flights qualifying for a fee waiver can be changed or canceled...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

OK, I felt sufficiently bad about this to address it this morning. The fix is available in dev (and master, on accident).
No worries guy, yes, this is a very annoying issue if you are having things save on keystrokes, for example.
@mamcx intercooler is more mature and does the right thing, queuing up a request if another one is in flight, instead of cancelling it.
I plan on fixing this as soon as possible, but unfortunately some life events have made it very difficult to get open source work done.