Skip to content
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

fix cursors overlay crash #412

Merged
merged 6 commits into from
Jul 17, 2023

Conversation

ilya2204
Copy link
Contributor

@ilya2204 ilya2204 commented Jul 9, 2023

Hello @BitPhinix I made a temporary solution that seems to fix cursor crashes and they work as they should. It is clear that this is not a targeted solution, but at the moment I think it's better than not being able to use them at all in react 18. #372

@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2023

🦋 Changeset detected

Latest commit: 8fde32a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@slate-yjs/react Minor
@slate-yjs/example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@BitPhinix
Copy link
Owner

BitPhinix commented Jul 15, 2023

Open to merging this as a temporary fix! I would love for someone to dig into this further and fix a proper fix

Copy link
Owner

@BitPhinix BitPhinix left a comment

Choose a reason for hiding this comment

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

Could you add a changeset?

@ilya2204
Copy link
Contributor Author

@BitPhinix I added changeset. And I also had to add "try catch" in one more place, the original fix fixed repository example, but in my project with a more complex editor structure, cursors could still be broken

@BitPhinix BitPhinix merged commit 8ab46c0 into BitPhinix:main Jul 17, 2023
2 checks passed
@github-actions github-actions bot mentioned this pull request Jul 17, 2023
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