Skip to content

implement async task queue to synchronize react wrapper initialization useEffect #872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

zoran995
Copy link
Contributor

@zoran995 zoran995 commented Feb 19, 2025

Fixes #871

This will ensure that dispose is not invoked before the editor is fully started. This will slow down initialisation in development mode, as the editor will be fully started, then destroyed and started again; however, in production, it should work the same as in the main (unless some unexpected re-renders occur on the client side).
I have also added a regression test to verify the fix

@zoran995 zoran995 marked this pull request as draft February 20, 2025 10:02
@zoran995
Copy link
Contributor Author

This potentially uncovered different issue as it doesn't completely initialize the second time and it hangs at starting the language clients still looking into this

@zoran995
Copy link
Contributor Author

zoran995 commented Feb 20, 2025

superseded by #873

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.

React strict mode race condition
1 participant