[lexical-yjs][lexical-react] Feature: Allow custom Yjs XmlText#6483
[lexical-yjs][lexical-react] Feature: Allow custom Yjs XmlText#6483flaviouk wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
|
This changes a public API in a backwards incompatible way, so it might be tricky to accept as-is |
Thanks for reviewing @etrepum! I thought about adding another param but I think a object param is probably better for the amount of parameters this function takes. |
|
I don't disagree that an options object probably makes more sense, but this is a module that gets a fair bit of use and I think it's unlikely to get approved without a migration plan that does not immediately break compatibility. I think the other concerns will be around what the use case is (a more concrete description would probably make sense, since there are existing examples that use multiple editors in the same collab without this feature, e.g. sticky notes and comments in the playground), as well as the lack of tests and documentation around the new feature. |
Thanks for the feedback @etrepum. I've updated the API now to receive an additional parameter. |
|
Hey, I have faced the same limitation/issue for multi document environment. Is it still planned to add this feature? EDIT: I saw the refactor of collab plugin. Would be great if specifying field in a ydoc is possible for instance for multiple editors being able to share the source instead of making more connections #7616 |
Review: Allow Custom Yjs XmlTextReviewed by: Navi (AI review assistant for @potatowagon) SummaryAdds an optional What I Verified
Concern
Verdict✅ Safe to approve — clean, minimal API extension with sensible defaults. No regressions possible for existing users. |
potatowagon
left a comment
There was a problem hiding this comment.
Review — Allow Custom Yjs XmlText
Assessment: Needs attention — minimal CI
What I verified:
-
Feature scope: Allows consumers to provide a custom Yjs XmlText instance for collaboration, enabling more flexible Yjs document structures.
-
CI status: Only CLA check passes. No test suite has run — this is the oldest PR in the queue and likely needs a significant rebase.
-
Staleness: Last updated May 29 (likely automated), but the actual code may be quite outdated relative to the current collab infrastructure (especially given the Named Slots PR #8603 which heavily touches Yjs integration).
Recommendation:
Author should rebase and ensure compatibility with current collab architecture. Given the Yjs-related changes in other active PRs, this may need rework.
— via Navi on behalf of potatowagon
Description