Skip to content

Conversation

@mbostock
Copy link
Member

@mbostock mbostock commented Mar 23, 2024

The lazy config #695 introduced a race condition where we could drop a hello↑ message that is sent immediately upon connection because we were waiting for the config to load. Now we register the message event listener (and other listeners) synchronously on connect, moving the await to within the listener. Fixes #563.

@mbostock mbostock requested a review from Fil March 23, 2024 17:07
Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

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

works for real!

@mbostock mbostock merged commit ff48120 into main Mar 23, 2024
@mbostock mbostock deleted the mbostock/fix-hello-race branch March 23, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vi and emacs don't properly live update in preview

3 participants