Skip to content

refactor: new react mounting system #1438

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 7 commits into from
Feb 17, 2025
Merged

refactor: new react mounting system #1438

merged 7 commits into from
Feb 17, 2025

Conversation

YousefED
Copy link
Collaborator

@YousefED YousefED commented Feb 17, 2025

This refactors the old mounting system for React. The biggest improvement is that we don't need queueMicrotask in several areas anymore which was a bit of a code smell and possible source for race conditions.

Also cleans up an outdated workaround re onDrop / onPaste that shouldn't be necessary with recent TipTap versions anymore

Copy link

vercel bot commented Feb 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Feb 17, 2025 0:43am
blocknote-website ✅ Ready (Inspect) Visit Preview Feb 17, 2025 0:43am

@YousefED YousefED requested a review from nperez0111 February 17, 2025 10:54
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice code 😂

Copy link
Contributor

@nperez0111 nperez0111 left a comment

Choose a reason for hiding this comment

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

This looks good code-wise. Let's hope tiptap merges v3 to make this even simpler!

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