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

Add a parameter for formatContentModel to allow auto detection of new/removed entities #2855

Open
JiuqingSong opened this issue Nov 1, 2024 · 0 comments

Comments

@JiuqingSong
Copy link
Collaborator

We have the auto detection code in EntityPlugin but it is only executed when context.newEntities is undefined. When using formatContentModel, this array is already defined, so those code will not be executed.

We can add something as parameter (in context or somewhere) or do a smart detection to decide if we should do the detection, so we can safely add/remove entities in formatContentModel and no need to do extra work to make them hydrated/cleaned up.

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

No branches or pull requests

1 participant