We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 522c8fc commit f8abfa9Copy full SHA for f8abfa9
lib/dom-patcher.js
@@ -56,6 +56,7 @@ export class DOMPatcher {
56
insertHook(this.vnode);
57
}
58
59
+ this.el = this.vnode.elm;
60
61
62
update(newState) {
@@ -91,6 +92,7 @@ export class DOMPatcher {
91
92
93
patch(this.vnode, newVnode);
94
this.vnode = newVnode;
95
96
97
98
disconnect() {
@@ -101,6 +103,6 @@ export class DOMPatcher {
101
103
this.el = null;
102
104
// patch with empty vnode to clear out listeners in tree
105
// this ensures we don't leave dangling DetachedHTMLElements blocking GC
- patch(vnode, {sel: vnode.sel});
106
+ patch(vnode, {sel: vnode.sel, key: vnode.key});
107
108
0 commit comments