Skip to content

Commit 5dd6c09

Browse files
authored
Prevent frequently updated components from retaining memory (#4907)
1 parent f23272c commit 5dd6c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function renderComponent(component) {
154154
newVNode._original = oldVNode._original;
155155
newVNode._parent._children[newVNode._index] = newVNode;
156156
commitRoot(commitQueue, newVNode, refQueue);
157+
oldVNode._parent = oldVNode._dom = NULL;
157158

158159
if (newVNode._dom != oldDom) {
159160
updateParentDomPointers(newVNode);

0 commit comments

Comments
 (0)