fix(keep-alive): fix keep-alive rendering when placed in vnode branch
fix #4817
This commit is contained in:
@@ -676,7 +676,7 @@ function testRender(type: string, render: typeof renderToString) {
|
||||
render: () => h('p', 'hello')
|
||||
}
|
||||
expect(await render(h(KeepAlive, () => h(MyComp)))).toBe(
|
||||
`<!--[--><p>hello</p><!--]-->`
|
||||
`<p>hello</p>`
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user