Skip to content

fix: init listeners before getDoc to solve server miss sync request problem #9

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

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

galaxian85
Copy link
Collaborator

As title, the getDoc sometimes took too much time that cause server received sync-step-1 event before listeners init.
And this cause frontend can not retrieve the full YDoc so I move listener initializers up to solve this problem.

@Yukaii Yukaii requested a review from stanley2058 October 14, 2024 13:55
Copy link
Collaborator

@stanley2058 stanley2058 left a comment

Choose a reason for hiding this comment

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

🤯

@stanley2058 stanley2058 merged commit 409d6fc into main Oct 15, 2024
1 check passed
@stanley2058 stanley2058 deleted the fix-sync-timing branch October 15, 2024 02:31
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.

2 participants