-
Notifications
You must be signed in to change notification settings - Fork 152
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
Atoms re-render whenever parent node updates (?) #421
Comments
Thanks for reporting this.
|
This is mostly a data sanitation thing. I'm not an Ember dev and my debugging skills there are limited, but I'm pretty sure every time an atom re-renders as part of a section update, the |
@joshfrench Yeah, you're absolutely correct. Data sanitation and also memory pressure concerns. |
Once I've added an atom, its
render()
method is fired on any subsequent changes in the same section. For the Ember editor (and now the React version 😁) this means theADD_ATOM_HOOK
also fires again, and you end up with N+1 objects incomponentAtoms
which are never cleaned up.Not sure if this is by accident or design, since cards don't exhibit this behavior (or more accurately can't, because you can't edit their node.) If it is intentional I'll open a bug in the Ember editor for cleaning up the orphaned
componentAtoms
.The text was updated successfully, but these errors were encountered: