question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editing while request is in flight leads to lost events

See original GitHub issue
  1. Set up a form like this
<input hx-post="someURL" hx-trigger="keyup changed delay:1">
  1. Set up a server that intentionally delays a few seconds before it responds.
  2. Type “foo”
  3. Observe the POST happening
  4. Type “bar” while the server is delaying the response
  5. Observe server response completing; even observe the UI acknowledge a successful save, if you have that wired up.
  6. (Optional, for extra effect:) Walk to the kitchen and back
  7. See everything on page looks successful, navigate away from the page
  8. 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
1cgcommented, Aug 19, 2020

OK, I felt sufficiently bad about this to address it this morning. The fix is available in dev (and master, on accident).

1reaction
1cgcommented, Aug 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found