We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f94e4 commit 0dd5cdeCopy full SHA for 0dd5cde
packages/runtime-core/src/renderer.ts
@@ -780,7 +780,10 @@ function baseCreateRenderer(
780
) => {
781
const el = (n2.el = n1.el!)
782
let { patchFlag, dynamicChildren, dirs } = n2
783
- const oldProps = (n1 && n1.props) || EMPTY_OBJ
+ // #1426 take the old vnode's patch flag into account since user may clone a
784
+ // compiler-generated vnode, which de-opts to FULL_PROPS
785
+ patchFlag |= n1.patchFlag & PatchFlags.FULL_PROPS
786
+ const oldProps = n1.props || EMPTY_OBJ
787
const newProps = n2.props || EMPTY_OBJ
788
let vnodeHook: VNodeHook | undefined | null
789
0 commit comments