Skip to content

Conversation

@russelldavis
Copy link
Contributor

Fixes #47386

This sets the flushOnListenerRemove option to true for the call to Event.debounce. Without this, some onMarkerChanged events can get dropped -- specifically, when an event gets fired more than 100ms after first listening, in which case the 600ms cleanup setTimeout fires while the 500ms debounce timeout is still pending.

Because of the race condition, the fix for #116760 applied at df97bc3 would only work intermittently.

cc @meganrogge (looks like you were assigned to my previous attempt to fix this at #183172)

Fixes microsoft#47386

This sets the `flushOnListenerRemove` option to true for the call to
Event.debounce. Without this, some `onMarkerChanged` events can get
dropped -- specifically, when an event gets fired more than 100ms after
first listening, in which case the 600ms cleanup setTimeout fires while
the 500ms debounce timeout is still pending.
@meganrogge meganrogge enabled auto-merge (squash) November 15, 2023 20:24
@meganrogge meganrogge added this to the November 2023 milestone Nov 15, 2023
@meganrogge meganrogge requested a review from mjbvz November 15, 2023 20:32
Copy link
Contributor

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mjbvz mjbvz modified the milestones: November 2023, December 2023 Nov 30, 2023
@meganrogge meganrogge merged commit b80a1c7 into microsoft:main Dec 19, 2023
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants