8000
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 7a416db commit 293f03bCopy full SHA for 293f03b
src/utils/instance.ts
@@ -107,11 +107,13 @@ function updateTemplateRef(vm: ComponentInstance) {
107
export function afterRender(vm: ComponentInstance) {
108
const stack = [(vm as any)._vnode as VNode]
109
while (stack.length) {
110
- const vnode = stack.pop()!
111
- if (vnode.context) updateTemplateRef(vnode.context)
112
- if (vnode.children) {
113
- for (let i = 0; i < vnode.children.length; ++i) {
114
- stack.push(vnode.children[i])
+ const vnode = stack.pop()
+ if (vnode) {
+ if (vnode.context) updateTemplateRef(vnode.context)
+ if (vnode.children) {
+ for (let i = 0; i < vnode.children.length; ++i) {
115
+ stack.push(vnode.children[i])
116
+ }
117
}
118
119
0 commit comments