Skip to content

Atoms re-render whenever parent node updates (?) #421

@joshfrench

Description

@joshfrench

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 the ADD_ATOM_HOOK also fires again, and you end up with N+1 objects in componentAtoms 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.

atom

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions