Feature Request: New Implementation for Unique-ID Pro Plugin #5839
jan-schweiger
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi Tiptap Team,
I’ve been testing the Unique-ID Pro Plugin in my React app in a production environment. Unfortunately, I’ve encountered several issues that make it error-prone and unsuitable for production use:
Additionally, I suspect more issues might arise with extended use in production. It appears there’s no rigorous mechanism to ensure IDs remain unique across all scenarios. As you can imagine, non-unique IDs pose a significant risk in business-critical applications.
My biggest concern, however, is performance. When applied to large documents (e.g., paragraphs), the plugin causes severe browser tab freezes, which makes it impractical for real-world usage.
Given these limitations, I believe the plugin is not yet production-ready. I’d like to raise awareness of these shortcomings and request a reimplementation that prioritizes both stability and performance.
In the meantime, I’ve developed a custom implementation that is significantly more performant on large documents, handles custom block nodes reliably, and maintains stability. I’d be happy to share insights from this experience if it would help improve the plugin.
Custom Implementation:
Example Use Case:
Despite running on every content change, this code is performant and doesn’t cause any lag, even with large documents. Additionally, it is very reliable and consistently ensures unique IDs.
I’d love to hear your thoughts on it!
PS: Thank you for your efforts, I have become a sponsor this week.
Use Case
A more reliable and more performant approach for adding unique-ids to every element of the Tiptap content.
Type
Other
Beta Was this translation helpful? Give feedback.
All reactions