-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical] Feature: Exclude nodes from serialization #6364
base: main
Are you sure you want to change the base?
Conversation
Merge branch 'main' of https://github.com/TryingToImprove/lexical into excluding-nodes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
I will need some guidance on whether or not this would be the correct way to handle excluding nodes before I continue :) |
I think the |
Yea, I was also considering that approach, however I would be surprised myself if I did an serialization and did not get the node because of As far as I can see the The backward compatibility issue is one of the reason I stopped where there code is now, since a lot of stuff breaks if The reason I went with returning |
I think there are three reasonable approaches:
|
With a quick look at the monorepo code it seems that options 1 & 2 would probably break the current implementation of |
I think I prefer The excluding of nodes can be done in user-land as I have done it now and the issue is kind of stale, so the feature might not be worth the complexity - I am not sure.. |
This tries to solve #4273
My use case for this is that I am adding a DecoratorNode into my editor, however I do not want to persist that Node.
I would like feedback, since I am new to the codebase